Elin Modding Docs Doc
Loading...
Searching...
No Matches
QuestDefense.cs
1using System;
2
3// Token: 0x020000D7 RID: 215
5{
6 // Token: 0x17000159 RID: 345
7 // (get) Token: 0x06000600 RID: 1536 RVA: 0x0002800F File Offset: 0x0002620F
8 public int numRequired
9 {
10 get
11 {
12 return 100;
13 }
14 }
15
16 // Token: 0x1700015A RID: 346
17 // (get) Token: 0x06000601 RID: 1537 RVA: 0x00028013 File Offset: 0x00026213
18 public int numHunted
19 {
20 get
21 {
22 return EClass.player.stats.kills;
23 }
24 }
25
26 // Token: 0x06000602 RID: 1538 RVA: 0x00028024 File Offset: 0x00026224
27 public override bool CanUpdateOnTalk(Chara c)
28 {
29 switch (this.phase)
30 {
31 case 0:
32 foreach (Chara chara in EClass._map.charas)
33 {
34 if (chara.isRestrained && chara.id == "punk" && chara.ExistsOnMap && chara.pos.IsInBounds)
35 {
36 return false;
37 }
38 }
39 return true;
40 case 1:
41 foreach (Chara chara2 in EClass._map.charas)
42 {
43 if (chara2.isRestrained && chara2.id == "boar" && chara2.ExistsOnMap && chara2.pos.IsInBounds)
44 {
45 return false;
46 }
47 }
48 return true;
49 case 2:
50 return this.numHunted >= this.numRequired;
51 default:
52 return false;
53 }
54 bool result;
55 return result;
56 }
57
58 // Token: 0x06000603 RID: 1539 RVA: 0x00028158 File Offset: 0x00026358
59 public override void OnChangePhase(int a)
60 {
61 if (this.phase == 2)
62 {
63 EClass.game.quests.globalList.Add(Quest.Create("puppy", null, null).SetClient(EClass.game.cards.globalCharas.Find("fiama"), false));
64 }
65 }
66
67 // Token: 0x06000604 RID: 1540 RVA: 0x000281B0 File Offset: 0x000263B0
68 public override string GetTextProgress()
69 {
70 if (this.phase != 2)
71 {
72 return "";
73 }
74 return "progressHunt".lang(this.numHunted.ToString() ?? "", this.numRequired.ToString() ?? "", null, null, null);
75 }
76
77 // Token: 0x06000605 RID: 1541 RVA: 0x00028207 File Offset: 0x00026407
78 public override void OnDropReward()
79 {
80 base.DropReward(ThingGen.Create("plat", -1, -1).SetNum(10));
81 }
82}
Definition Chara.cs:12
Definition Quest.cs:8