Elin Decompiled Documentation EA 23.197 Nightly Patch 1
Loading...
Searching...
No Matches
Zone_VernisMine.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public const int LvBoss = -8;
6
7 public bool IsBossLv => base.lv == -8;
8
9 public override int DangerLv => 5 + Mathf.Abs(base.lv);
10
11 public override bool LockExit
12 {
13 get
14 {
15 if (base.lv == -1)
16 {
17 return EClass.game.quests.GetPhase<QuestVernis>() < 7;
18 }
19 return false;
20 }
21 }
22
23 public override float OreChance => 4f;
24
25 public override string idExport
26 {
27 get
28 {
29 if (base.lv != -8)
30 {
31 return base.idExport;
32 }
33 return "vernis_mine_boss";
34 }
35 }
36
37 public override string GetDungenID()
38 {
39 return "DungeonMine";
40 }
41
42 public override void OnGenerateMap()
43 {
44 if (IsBossLv)
45 {
46 return;
47 }
48 PlaceRail();
49 EClass._map.ForeachCell(delegate(Cell c)
50 {
51 if (EClass.rnd(5) != 0 && c._block != 0 && !c.HasObj && !c.isSurrounded && !c.hasDoor)
52 {
53 c.GetSharedPoint().SetObj(24, 1, EClass.rnd(3));
54 }
55 });
56 base.OnGenerateMap();
57 }
58}
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 Game game
Definition: EClass.cs:8
static Map _map
Definition: EClass.cs:18
static int rnd(long a)
Definition: EClass.cs:58
QuestManager quests
Definition: Game.cs:179
new void ForeachCell(Action< Cell > action)
Definition: Map.cs:2346
void PlaceRail(RailType railType=RailType.Mine)
const int LvBoss
override int DangerLv
override void OnGenerateMap()
override string idExport
override string GetDungenID()
override float OreChance
override bool LockExit