12 public override string IDGenerator
22 public override bool DisableRooms
26 return !base.IsPCFaction;
32 public override bool UseFog
42 public override bool ShowDangerLv
52 public override float PrespawnRate
56 if (!this.idExport.IsEmpty())
66 public override bool IsReturnLocation
70 return base.GetDeepestLv() == base.lv;
76 public override int StartLV
86 public override bool BlockBorderExit
96 public override float EvolvedChance
110 public override float BigDaddyChance
124 public override float ShrineChance
138 public override bool IsSnowCovered
148 public override bool GrowPlant
158 public override bool GrowWeed
168 public override bool CountDeepestLevel
178 public override ZoneTransition.EnterState RegionEnterState
187 public override string GetDungenID()
191 return "DungeonRuins";
205 public override void OnGenerateMap()
207 if (!this.idExport.IsEmpty())
211 base.TryGenerateOre();
212 base.TryGenerateBigDaddy();
213 base.TryGenerateEvolved(
false);
214 base.TryGenerateShrine();
221 CS$<>8__locals1.idRail = 31;
222 CS$<>8__locals1.idTrolley =
"390";
223 CS$<>8__locals1.placeStopper =
true;
227 CS$<>8__locals1.idRail = 110;
228 CS$<>8__locals1.placeStopper =
false;
231 PathManager.Instance._pathfinder.PunishChangeDirection =
true;
232 PathManager.Instance._pathfinder.Diagonals =
false;
235 if (traitStairsDown !=
null && traitStairsUp !=
null)
237 Zone_Dungeon.<PlaceRail>g__TryPlaceRail|35_0(traitStairsDown.owner.pos, traitStairsUp.owner.pos, ref CS$<>8__locals1);
240 for (
int i = 0; i < 200; i++)
242 if (
Zone_Dungeon.<PlaceRail>g__TryPlaceRail|35_0(
EClass._map.bounds.GetRandomSurface(
false,
true,
false),
EClass._map.bounds.GetRandomSurface(
false,
true,
false), ref CS$<>8__locals1))
251 PathManager.Instance._pathfinder.Diagonals =
true;
256 internal static bool <PlaceRail>g__TryPlaceRail|35_0(
Point p1,
Point p2, ref
Zone_Dungeon.<>c__DisplayClass35_0 A_2)
258 if (p1.Distance(p2) < 20)
263 if (!pathProgress.HasPath)
273 Point shared =
Point.GetShared(pathFinderNode.X, pathFinderNode.Z);
274 for (
int i = -1; i < 2; i++)
279 point2.Set(shared.x + j, shared.z + i);
280 if ((Mathf.Abs(j) != 1 || Mathf.Abs(i) != 1) && point2.IsValid && point2.sourceObj.id == 31 && !point2.Equals(point))
295 if (shared.sourceObj.id == A_2.idRail)
299 shared.SetBlock(0, 0);
300 shared.SetObj(A_2.idRail, 1, 0);
301 shared.Things.ForeachReverse(delegate(
Thing t)
303 if (!t.trait.CanBeDestroyed)
316 if (!flag & A_2.placeStopper)
319 Cell cell = shared2.cell;
320 int dir = (cell.Front.obj == 31) ? 0 : ((cell.Right.obj == 31) ? 1 : ((cell.Back.obj == 31) ? 2 : 3));
321 if (!shared2.HasThing)
323 EClass._zone.AddCard(
ThingGen.Create(
"1208", -1, -1), shared2).Install().dir = dir;
329 if (!shared3.HasThing)
331 EClass._zone.AddCard(
ThingGen.Create(A_2.idTrolley, -1, -1), shared3).Install();