Elin Decompiled Documentation EA 23.153 Nightly
Loading...
Searching...
No Matches
GrowSystemSeaweed.cs
Go to the documentation of this file.
2{
3 public override int HarvestStage => -1;
4
5 public override bool GrowOnLand => false;
6
7 public override bool GrowUndersea => true;
8
9 public override bool NeedSunlight => false;
10
11 public override bool GenerateStraw => false;
12
13 public override bool CanReapSeed()
14 {
15 return base.stage.idx >= 1;
16 }
17
18 public override void OnMineObj(Chara c = null)
19 {
20 if (IsWithered() || base.stage.idx == 0)
21 {
22 base.OnMineObj(c);
23 return;
24 }
25 int num = 1 + EClass.rnd(base.stage.idx * 2) + ((base.stage.idx >= 2) ? 1 : 0);
26 PopHarvest(c, "seaweed2", num);
27 }
28}
Definition: Chara.cs:10
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:58
override bool CanReapSeed()
override bool GrowUndersea
override bool GenerateStraw
override bool NeedSunlight
override bool GrowOnLand
override void OnMineObj(Chara c=null)
override int HarvestStage
bool IsWithered()
Definition: GrowSystem.cs:492
void PopHarvest(Chara c, string idThing, int num=-1)
Definition: GrowSystem.cs:625