Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitStethoscope.cs
1using System;
2
3// Token: 0x02000381 RID: 897
5{
6 // Token: 0x1700080F RID: 2063
7 // (get) Token: 0x06001B55 RID: 6997 RVA: 0x000A7A4B File Offset: 0x000A5C4B
8 public override bool HasCharges
9 {
10 get
11 {
12 return true;
13 }
14 }
15
16 // Token: 0x06001B56 RID: 6998 RVA: 0x000A7A4E File Offset: 0x000A5C4E
17 public override void OnCreate(int lv)
18 {
19 this.owner.c_charges = EClass.rnd(6) + 2;
20 }
21
22 // Token: 0x06001B57 RID: 6999 RVA: 0x000A7A64 File Offset: 0x000A5C64
23 public override void TrySetHeldAct(ActPlan p)
24 {
25 p.pos.ListCards(false).ForEach(delegate(Card a)
26 {
27 Chara c = a.Chara;
28 if (c == null)
29 {
30 return;
31 }
32 if (p.IsSelfOrNeighbor && EClass.pc.CanSee(a) && c.IsPCFaction)
33 {
34 p.TrySetAct("actInvestigate", delegate()
35 {
36 EClass.pc.Say("use_scope", c, this.owner, null, null);
37 EClass.pc.Say("use_scope2", c, null, null);
38 c.Talk("pervert2", null, null, false);
39 EClass.ui.AddLayer<LayerChara>().SetChara(c);
40 this.owner.ModCharge(-1, false);
41 if (this.owner.c_charges <= 0)
42 {
43 EClass.pc.Say("spellbookCrumble", this.owner, null, null);
44 this.owner.Destroy();
45 }
46 return false;
47 }, c, null, 1, false, true, false);
48 }
49 });
50 }
51}
Definition Card.cs:13
Definition Chara.cs:12