Elin Decompiled Documentation
EA 23.197 Nightly Patch 1
Loading...
Searching...
No Matches
Zone_CurryRuinDungeon.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
Zone_CurryRuinDungeon
:
Zone_QuestDungeon
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
}
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._map
static Map _map
Definition:
EClass.cs:18
EClass.rnd
static int rnd(long a)
Definition:
EClass.cs:58
Game.quests
QuestManager quests
Definition:
Game.cs:179
Map.ForeachCell
new void ForeachCell(Action< Cell > action)
Definition:
Map.cs:2346
QuestVernis
Definition:
QuestVernis.cs:2
Zone_CurryRuinDungeon
Definition:
Zone_CurryRuinDungeon.cs:4
Zone_CurryRuinDungeon.OreChance
override float OreChance
Definition:
Zone_CurryRuinDungeon.cs:23
Zone_CurryRuinDungeon.OnGenerateMap
override void OnGenerateMap()
Definition:
Zone_CurryRuinDungeon.cs:42
Zone_CurryRuinDungeon.DangerLv
override int DangerLv
Definition:
Zone_CurryRuinDungeon.cs:9
Zone_CurryRuinDungeon.GetDungenID
override string GetDungenID()
Definition:
Zone_CurryRuinDungeon.cs:37
Zone_CurryRuinDungeon.IsBossLv
bool IsBossLv
Definition:
Zone_CurryRuinDungeon.cs:7
Zone_CurryRuinDungeon.LockExit
override bool LockExit
Definition:
Zone_CurryRuinDungeon.cs:12
Zone_CurryRuinDungeon.LvBoss
const int LvBoss
Definition:
Zone_CurryRuinDungeon.cs:5
Zone_CurryRuinDungeon.idExport
override string idExport
Definition:
Zone_CurryRuinDungeon.cs:26
Zone_Dungeon.PlaceRail
void PlaceRail(RailType railType=RailType.Mine)
Definition:
Zone_Dungeon.cs:111
Zone_QuestDungeon
Definition:
Zone_QuestDungeon.cs:4
Elin
Zone_CurryRuinDungeon.cs
Generated by
1.9.6