Elin Decompiled Documentation EA 23.153 Nightly
Loading...
Searching...
No Matches
GrowSystemTreeCoralwood.cs
Go to the documentation of this file.
1using System.Linq;
2
4{
5 public override bool GrowUndersea => true;
6
7 public override int GetShadow(int index)
8 {
9 return 34;
10 }
11
12 public override bool BlockPass(Cell cell)
13 {
14 return true;
15 }
16
17 public override bool BlockSight(Cell cell)
18 {
19 return true;
20 }
21
22 public override void OnSetObj()
23 {
24 GrowSystem.cell.isObjDyed = true;
25 GrowSystem.cell.objDir = EClass.rnd(source.tiles.Length);
26 GrowSystem.cell.objMat = (byte)EClass.sources.materials.rows.Where((SourceMaterial.Row r) => r.tag.Contains("coral")).RandomItem().id;
27 }
28
29 public override int GetStageTile()
30 {
31 return source._tiles[GrowSystem.cell.objDir % source._tiles.Length];
32 }
33}
Definition: Cell.cs:7
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:58
static SourceManager sources
Definition: EClass.cs:42
override bool BlockPass(Cell cell)
override bool BlockSight(Cell cell)
override int GetShadow(int index)
SourceObj.Row source
Definition: GrowSystem.cs:49
static Cell cell
Definition: GrowSystem.cs:45
SourceMaterial materials