Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
Zone_RandomDungeonFactory.cs
Go to the documentation of this file.
2{
3 public override int BaseElectricity => 1000;
4
5 public override void OnGenerateMap()
6 {
7 PlaceRail(RailType.Factoy);
8 EClass._map.ForeachCell(delegate(Cell c)
9 {
10 if (EClass.rnd(5) != 0 && c._block != 0 && !c.HasObj && !c.isSurrounded && !c.hasDoor)
11 {
12 c.GetSharedPoint().SetObj(106, 1, EClass.rnd(4));
13 }
14 });
15 base.OnGenerateMap();
16 }
17}
Definition: Cell.cs:7
byte _block
Definition: Cell.cs:30
bool isSurrounded
Definition: Cell.cs:234
bool HasObj
Definition: Cell.cs:641
bool hasDoor
Definition: Cell.cs:258
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:50
static Map _map
Definition: EClass.cs:18
new void ForeachCell(Action< Cell > action)
Definition: Map.cs:2324
void PlaceRail(RailType railType=RailType.Mine)