Elin Modding Docs Doc
Loading...
Searching...
No Matches
QuestVernis.cs
1using System;
2
3// Token: 0x020000D4 RID: 212
5{
6 // Token: 0x17000158 RID: 344
7 // (get) Token: 0x060005ED RID: 1517 RVA: 0x0002791C File Offset: 0x00025B1C
8 public override string TitlePrefix
9 {
10 get
11 {
12 return "★";
13 }
14 }
15
16 // Token: 0x060005EE RID: 1518 RVA: 0x00027924 File Offset: 0x00025B24
17 public override void OnEnterZone()
18 {
19 Zone_VernisMine zone_VernisMine = EClass._zone as Zone_VernisMine;
20 if (zone_VernisMine != null && this.phase == 7 && zone_VernisMine.IsBossLv)
21 {
22 this.UpdateOnTalk();
23 }
24 }
25
26 // Token: 0x060005EF RID: 1519 RVA: 0x00027958 File Offset: 0x00025B58
27 public override void OnChangePhase(int a)
28 {
29 int phase = this.phase;
30 if (phase == 1)
31 {
32 EClass.game.cards.globalCharas.Find("loytel").MoveHome("vernis", -1, -1);
33 return;
34 }
35 if (phase == 5)
36 {
37 Chara chara = EClass.game.cards.globalCharas.Find("quru");
38 if (chara != null)
39 {
40 chara.MoveHome("vernis", -1, -1);
41 EClass.Branch.AddMemeber(chara);
42 EClass.game.cards.globalCharas.Find("kettle").MoveHome("vernis", -1, -1);
43 EClass.Branch.AddMemeber(EClass.game.cards.globalCharas.Find("kettle"));
44 EClass.game.cards.globalCharas.Find("farris").MoveHome("vernis", -1, -1);
45 EClass.Branch.AddMemeber(EClass.game.cards.globalCharas.Find("farris"));
46 }
47 EClass.Branch.AddMemeber(EClass.game.cards.globalCharas.Find("loytel"));
48 return;
49 }
50 if (phase != 7)
51 {
52 return;
53 }
54 base.DropReward(ThingGen.CreatePotion(8506, 1).SetNum(3));
55 base.DropReward(ThingGen.Create("blanket_fire", -1, -1));
56 }
57
58 // Token: 0x060005F0 RID: 1520 RVA: 0x00027ABC File Offset: 0x00025CBC
59 public override bool CanUpdateOnTalk(Chara c)
60 {
61 if (this.phase != 0 && EClass._zone.id != "vernis")
62 {
63 return false;
64 }
65 switch (this.phase)
66 {
67 case 0:
68 return true;
69 case 1:
70 return true;
71 case 2:
72 return true;
73 case 3:
74 {
75 bool valid = true;
76 EClass._map.bounds.ForeachCell(delegate(Cell c)
77 {
78 if (c.sourceObj.id == 100)
79 {
80 valid = false;
81 }
82 });
83 return valid;
84 }
85 case 4:
86 return EClass._zone.IsPCFaction;
87 case 5:
88 return EClass.game.quests.IsCompleted("quru_past2") && EClass._zone.IsPCFaction && EClass.Branch.lv >= 2;
89 case 6:
90 return true;
91 case 9:
92 return EClass._zone.IsPCFaction;
93 case 10:
94 return true;
95 }
96 return false;
97 }
98
99 // Token: 0x060005F1 RID: 1521 RVA: 0x00027BAC File Offset: 0x00025DAC
100 public override void OnComplete()
101 {
102 Chara chara = CharaGen.Create("corgon", -1);
103 chara.SetInt(100, 1);
104 EClass._zone.AddCard(chara, EClass.pc.pos.GetNearestPoint(false, true, true, false));
105 EClass.Branch.AddMemeber(chara);
106 EClass.game.quests.Add("mokyu", "corgon").startDate = EClass.world.date.GetRaw(0) + 14400;
107 EClass.game.quests.Add("pre_debt", "farris").startDate = EClass.world.date.GetRaw(0) + 28800;
108 }
109
110 // Token: 0x060005F2 RID: 1522 RVA: 0x00027C60 File Offset: 0x00025E60
111 public override string GetTextProgress()
112 {
113 if (this.phase == 3 && EClass._zone is Zone_Vernis && EClass._zone.lv == 0)
114 {
115 int n = 0;
116 EClass._map.bounds.ForeachCell(delegate(Cell c)
117 {
118 if (c.sourceObj.id == 100)
119 {
120 int n = n;
121 n++;
122 }
123 });
124 return "progressVernis".lang(n.ToString() ?? "", null, null, null, null);
125 }
126 return base.GetTextProgress();
127 }
128}
Definition Cell.cs:10
Definition Chara.cs:12