Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
Zone_VernisMine.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
Zone_VernisMine
:
Zone_Dungeon
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
}
Cell
Definition:
Cell.cs:7
Cell._block
byte _block
Definition:
Cell.cs:30
Cell.isSurrounded
bool isSurrounded
Definition:
Cell.cs:234
Cell.HasObj
bool HasObj
Definition:
Cell.cs:641
Cell.hasDoor
bool hasDoor
Definition:
Cell.cs:258
EClass
Definition:
EClass.cs:5
EClass.game
static Game game
Definition:
EClass.cs:8
EClass.rnd
static int rnd(int a)
Definition:
EClass.cs:50
EClass._map
static Map _map
Definition:
EClass.cs:18
Game.quests
QuestManager quests
Definition:
Game.cs:179
Map.ForeachCell
new void ForeachCell(Action< Cell > action)
Definition:
Map.cs:2324
QuestVernis
Definition:
QuestVernis.cs:2
Zone_Dungeon
Definition:
Zone_Dungeon.cs:6
Zone_Dungeon.PlaceRail
void PlaceRail(RailType railType=RailType.Mine)
Definition:
Zone_Dungeon.cs:109
Zone_VernisMine
Definition:
Zone_VernisMine.cs:4
Zone_VernisMine.LvBoss
const int LvBoss
Definition:
Zone_VernisMine.cs:5
Zone_VernisMine.DangerLv
override int DangerLv
Definition:
Zone_VernisMine.cs:37
Zone_VernisMine.OnGenerateMap
override void OnGenerateMap()
Definition:
Zone_VernisMine.cs:44
Zone_VernisMine.ContentLv
override int ContentLv
Definition:
Zone_VernisMine.cs:35
Zone_VernisMine.idExport
override string idExport
Definition:
Zone_VernisMine.cs:24
Zone_VernisMine.GetDungenID
override string GetDungenID()
Definition:
Zone_VernisMine.cs:39
Zone_VernisMine.OreChance
override float OreChance
Definition:
Zone_VernisMine.cs:21
Zone_VernisMine.IsBossLv
bool IsBossLv
Definition:
Zone_VernisMine.cs:7
Zone_VernisMine.LockExit
override bool LockExit
Definition:
Zone_VernisMine.cs:10
Elin
Zone_VernisMine.cs
Generated by
1.9.6