Elin Modding Docs Doc
Loading...
Searching...
No Matches
Zone_RandomDungeonFactory.cs
1using System;
2
3// Token: 0x02000732 RID: 1842
5{
6 // Token: 0x17001020 RID: 4128
7 // (get) Token: 0x060034D7 RID: 13527 RVA: 0x0011D2A9 File Offset: 0x0011B4A9
8 public override int BaseElectricity
9 {
10 get
11 {
12 return 1000;
13 }
14 }
15
16 // Token: 0x060034D8 RID: 13528 RVA: 0x0011D2B0 File Offset: 0x0011B4B0
17 public override void OnGenerateMap()
18 {
19 base.PlaceRail(Zone_Dungeon.RailType.Factoy);
20 EClass._map.ForeachCell(delegate(Cell c)
21 {
22 if (EClass.rnd(5) == 0 || c._block == 0 || c.HasObj || c.isSurrounded || c.hasDoor)
23 {
24 return;
25 }
26 c.GetSharedPoint().SetObj(106, 1, EClass.rnd(4));
27 });
28 base.OnGenerateMap();
29 }
30}
Definition Cell.cs:10