Elin Modding Docs Doc
Loading...
Searching...
No Matches
ListPeopleRevive.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4
5// Token: 0x020005AE RID: 1454
7{
8 // Token: 0x060027E9 RID: 10217 RVA: 0x000E1930 File Offset: 0x000DFB30
9 public override bool IsDisabled(Chara c)
10 {
11 return false;
12 }
13
14 // Token: 0x060027EA RID: 10218 RVA: 0x000E1934 File Offset: 0x000DFB34
15 public override void OnInstantiate(Chara a, ItemGeneral b)
16 {
17 base.OnInstantiate(a, b);
18 int money = EClass.pc.GetCurrency("money");
19 b.AddPrefab<UIItem>("costMoney").text1.SetText((CalcMoney.Revive(a).ToString() ?? "").TagColorGoodBad(() => money >= CalcMoney.Revive(a), false));
20 }
21
22 // Token: 0x060027EB RID: 10219 RVA: 0x000E19B3 File Offset: 0x000DFBB3
23 public override void OnClick(Chara c, ItemGeneral i)
24 {
25 if (!EClass.pc.TryPay(CalcMoney.Revive(c), "money"))
26 {
27 return;
28 }
29 c.GetRevived();
30 this.list.List(false);
31 }
32
33 // Token: 0x060027EC RID: 10220 RVA: 0x000E19E0 File Offset: 0x000DFBE0
34 public override void OnList()
35 {
36 foreach (KeyValuePair<int, Chara> keyValuePair in from a in EClass.game.cards.globalCharas
37 where a.Value.isDead && a.Value.faction == EClass.pc.faction && !a.Value.isSummon
38 select a)
39 {
40 this.list.Add(keyValuePair.Value);
41 }
42 }
43}
Definition Chara.cs:12