Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
Zone_Nymelle.cs
Go to the documentation of this file.
2{
3 public override string idExport
4 {
5 get
6 {
7 if (base.lv != LvBoss)
8 {
9 if (base.lv != LvCrystal)
10 {
11 return base.source.id;
12 }
13 return "nymelle_crystal";
14 }
15 return "nymelle_boss";
16 }
17 }
18
19 public int LvBoss => -5;
20
21 public int LvCrystal => -6;
22
23 public bool IsBossLv => base.lv == LvBoss;
24
25 public bool IsCrystalLv => base.lv == LvCrystal;
26
27 public override bool LockExit
28 {
29 get
30 {
31 if ((base.lv != -2 || EClass.game.quests.GetPhase<QuestExploration>() >= 1) && (base.lv != LvBoss + 1 || EClass.game.quests.GetPhase<QuestExploration>() >= 2))
32 {
33 if (base.lv == LvBoss)
34 {
35 return EClass.game.quests.GetPhase<QuestExploration>() < 3;
36 }
37 return false;
38 }
39 return true;
40 }
41 }
42
43 public override bool UseFog
44 {
45 get
46 {
47 if (!IsBossLv)
48 {
49 return !IsCrystalLv;
50 }
51 return false;
52 }
53 }
54
55 public override bool RevealRoom
56 {
57 get
58 {
59 if (!IsBossLv)
60 {
61 return IsCrystalLv;
62 }
63 return true;
64 }
65 }
66
67 public override float PrespawnRate
68 {
69 get
70 {
71 if (!IsBossLv && !IsCrystalLv)
72 {
73 return base.PrespawnRate;
74 }
75 return 0f;
76 }
77 }
78
79 public override string GetNewZoneID(int level)
80 {
81 if (level == LvBoss)
82 {
83 return "nymelle_boss";
84 }
85 if (level == LvCrystal)
86 {
87 return "nymelle_crystal";
88 }
89 return base.GetNewZoneID(level);
90 }
91
92 public override void OnBeforeSimulate()
93 {
94 if (base.visitCount != 0)
95 {
96 return;
97 }
98 if (IsBossLv)
99 {
100 EClass._zone.AddChara("isygarad", 40, 37);
101 SoundManager.ForceBGM();
102 LayerDrama.ActivateMain("mono", "nymelle_boss");
103 }
104 if (IsCrystalLv)
105 {
106 Chara chara = EClass.game.cards.globalCharas.Find("fiama");
107 chara.MoveHome(EClass._zone, 43, 67);
108 chara.AddEditorTag(EditorTag.AINoMove);
109 }
110 else if (base.lv == -2)
111 {
112 Chara chara2 = EClass.game.cards.globalCharas.Find("farris");
113 if (chara2 == null)
114 {
115 chara2 = CharaGen.Create("farris");
116 chara2.SetGlobal();
118 EClass._zone.AddCard(chara2, thing.pos.x, thing.pos.z);
119 chara2.AddEditorTag(EditorTag.AINoMove);
120 chara2.AddEditorTag(EditorTag.Invulnerable);
121 }
122 }
123 }
124}
EditorTag
Definition: EditorTag.cs:2
Chara Find(string id)
Definition: CardManager.cs:20
GlobalCharaList globalCharas
Definition: CardManager.cs:46
void AddEditorTag(EditorTag tag)
Definition: Card.cs:2465
Point pos
Definition: Card.cs:55
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
Chara SetGlobal(Zone _home, int x, int z)
Definition: Chara.cs:1266
void MoveHome(string id, int x=-1, int z=-1)
Definition: Chara.cs:3135
Definition: EClass.cs:5
static Game game
Definition: EClass.cs:8
static Zone _zone
Definition: EClass.cs:20
static Map _map
Definition: EClass.cs:18
CardManager cards
Definition: Game.cs:155
QuestManager quests
Definition: Game.cs:179
static LayerDrama ActivateMain(string idSheet, string idStep=null, Chara target=null, Card ref1=null, string tag="")
Definition: LayerDrama.cs:61
PropsManager props
Definition: Map.cs:91
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
PropsInstalled installed
Definition: PropsManager.cs:8
Thing Find(int uid)
Definition: Props.cs:357
Definition: Thing.cs:8
override string idExport
Definition: Zone_Nymelle.cs:4
override bool LockExit
Definition: Zone_Nymelle.cs:28
override float PrespawnRate
Definition: Zone_Nymelle.cs:68
override bool RevealRoom
Definition: Zone_Nymelle.cs:56
bool IsCrystalLv
Definition: Zone_Nymelle.cs:25
override bool UseFog
Definition: Zone_Nymelle.cs:44
override void OnBeforeSimulate()
Definition: Zone_Nymelle.cs:92
override string GetNewZoneID(int level)
Definition: Zone_Nymelle.cs:79
Card AddChara(string id, int x, int z)
Definition: Zone.cs:1878
Card AddCard(Card t, Point point)
Definition: Zone.cs:1893