Elin Modding Docs Doc
Loading...
Searching...
No Matches
GrowSystemWheat.cs
1using System;
2
3// Token: 0x0200067D RID: 1661
5{
6 // Token: 0x17000D44 RID: 3396
7 // (get) Token: 0x06002EAF RID: 11951 RVA: 0x001066B8 File Offset: 0x001048B8
8 protected override bool UseGenericFirstStageTile
9 {
10 get
11 {
12 return false;
13 }
14 }
15
16 // Token: 0x17000D45 RID: 3397
17 // (get) Token: 0x06002EB0 RID: 11952 RVA: 0x001066BB File Offset: 0x001048BB
18 public override int HarvestStage
19 {
20 get
21 {
22 return 3;
23 }
24 }
25
26 // Token: 0x17000D46 RID: 3398
27 // (get) Token: 0x06002EB1 RID: 11953 RVA: 0x001066BE File Offset: 0x001048BE
28 public override int AutoMineStage
29 {
30 get
31 {
32 return 3;
33 }
34 }
35
36 // Token: 0x06002EB2 RID: 11954 RVA: 0x001066C1 File Offset: 0x001048C1
37 public override string GetSoundProgress()
38 {
39 return this.source.DefaultMaterial.GetSoundImpact(null);
40 }
41
42 // Token: 0x06002EB3 RID: 11955 RVA: 0x001066D4 File Offset: 0x001048D4
43 public override int GetStageTile()
44 {
45 if (GrowSystem.currentStage.idx == this.StageLength - 1 && GrowSystem.cell.isHarvested)
46 {
47 return this.harvestTile + 1;
48 }
49 return base.GetStageTile();
50 }
51
52 // Token: 0x06002EB4 RID: 11956 RVA: 0x00106708 File Offset: 0x00104908
53 public override void OnMineObj(Chara c = null)
54 {
55 if (base.IsWithered() || this.IsHarvestStage(base.stage.idx))
56 {
57 base.TryPick(GrowSystem.cell, ThingGen.Create("grass", "straw"), c, false);
58 return;
59 }
60 base.OnMineObj(c);
61 }
62}
Definition Chara.cs:12