Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
GrowSystemWheat.cs
Go to the documentation of this file.
2{
3 protected override bool UseGenericFirstStageTile => false;
4
5 public override int HarvestStage => 3;
6
7 public override int AutoMineStage => 3;
8
9 public override string GetSoundProgress()
10 {
11 return source.DefaultMaterial.GetSoundImpact();
12 }
13
14 public override int GetStageTile()
15 {
17 {
18 return harvestTile + 1;
19 }
20 return base.GetStageTile();
21 }
22
23 public override void OnMineObj(Chara c = null)
24 {
25 if (IsWithered() || IsHarvestStage(base.stage.idx))
26 {
27 TryPick(GrowSystem.cell, ThingGen.Create("grass", "straw"), c);
28 }
29 else
30 {
31 base.OnMineObj(c);
32 }
33 }
34}
bool isHarvested
Definition: Cell.cs:330
Definition: Chara.cs:10
override void OnMineObj(Chara c=null)
override string GetSoundProgress()
override int GetStageTile()
override int HarvestStage
override int AutoMineStage
override bool UseGenericFirstStageTile
virtual int StageLength
Definition: GrowSystem.cs:65
virtual bool IsHarvestStage(int idx)
Definition: GrowSystem.cs:106
static Stage currentStage
Definition: GrowSystem.cs:47
void TryPick(Cell cell, Thing t, Chara c, bool applySeed=false)
Definition: GrowSystem.cs:528
bool IsWithered()
Definition: GrowSystem.cs:473
SourceObj.Row source
Definition: GrowSystem.cs:49
static Cell cell
Definition: GrowSystem.cs:45
int harvestTile
Definition: GrowSystem.cs:55
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53