Elin Modding Docs Doc
Loading...
Searching...
No Matches
GrowSystemFlower.cs
1
using
System;
2
3
// Token: 0x02000676 RID: 1654
4
public
class
GrowSystemFlower
:
GrowSystemPlant
5
{
6
// Token: 0x17000D34 RID: 3380
7
// (get) Token: 0x06002E8D RID: 11917 RVA: 0x00106452 File Offset: 0x00104652
8
public
override
int
HarvestStage
9
{
10
get
11
{
12
return
3;
13
}
14
}
15
16
// Token: 0x06002E8E RID: 11918 RVA: 0x00106455 File Offset: 0x00104655
17
public
override
bool
CanReapSeed()
18
{
19
return
base.stage.idx >= 2;
20
}
21
22
// Token: 0x06002E8F RID: 11919 RVA: 0x00106468 File Offset: 0x00104668
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
GrowSystemFlower
Definition
GrowSystemFlower.cs:5
GrowSystem
Definition
GrowSystem.cs:6
GrowSystemPlant
Definition
GrowSystemPlant.cs:5
ThingGen
Definition
ThingGen.cs:9
Elin
GrowSystemFlower.cs
Generated by
1.12.0