Elin Modding Docs Doc
Loading...
Searching...
No Matches
GrowSystemHerb.cs
1
using
System;
2
3
// Token: 0x02000677 RID: 1655
4
public
class
GrowSystemHerb
:
GrowSystemPlant
5
{
6
// Token: 0x17000D35 RID: 3381
7
// (get) Token: 0x06002E91 RID: 11921 RVA: 0x001064F3 File Offset: 0x001046F3
8
public
override
int
HarvestStage
9
{
10
get
11
{
12
return
3;
13
}
14
}
15
16
// Token: 0x06002E92 RID: 11922 RVA: 0x001064F6 File Offset: 0x001046F6
17
public
override
bool
CanReapSeed()
18
{
19
return
base.stage.idx >= 2;
20
}
21
22
// Token: 0x06002E93 RID: 11923 RVA: 0x0010650C File Offset: 0x0010470C
23
public
override
void
OnMineObj(
Chara
c =
null
)
24
{
25
if
(
EClass
.rnd(2) == 0)
26
{
27
base.TryPick(
GrowSystem
.cell,
ThingGen
.Create(
"grass"
,
EClass
.sources.materials.alias[
"grass"
].id, -1), c,
false
);
28
}
29
if
(base.Grown || base.Mature)
30
{
31
base.PopHarvest(c ??
EClass
.pc,
ThingGen
.Create(
this
.idHarvestThing.IsEmpty(
"flower"
), -1, -1), -1);
32
}
33
}
34
}
Chara
Definition
Chara.cs:12
EClass
Definition
EClass.cs:7
GrowSystemHerb
Definition
GrowSystemHerb.cs:5
GrowSystem
Definition
GrowSystem.cs:6
GrowSystemPlant
Definition
GrowSystemPlant.cs:5
ThingGen
Definition
ThingGen.cs:9
Elin
GrowSystemHerb.cs
Generated by
1.12.0