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