Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitEquipItem.cs
1using System;
2
3// Token: 0x0200043C RID: 1084
5{
6 // Token: 0x1700097B RID: 2427
7 // (get) Token: 0x06001E8F RID: 7823 RVA: 0x000AF6A2 File Offset: 0x000AD8A2
8 // (set) Token: 0x06001E90 RID: 7824 RVA: 0x000AF6AA File Offset: 0x000AD8AA
9 public virtual Thing EQ { get; set; }
10
11 // Token: 0x06001E91 RID: 7825 RVA: 0x000AF6B4 File Offset: 0x000AD8B4
12 public override bool OnUse(Chara c)
13 {
14 if (this.EQ == this.owner)
15 {
16 this.EQ = null;
17 Msg.Say("unequipItem", c, this.owner, null, null);
18 EClass.pc.PlaySound("equip", 1f, true);
19 }
20 else
21 {
22 LayerInventory.SetDirty(this.EQ);
23 Msg.Say("equipItem", c, this.owner, null, null);
24 this.EQ = this.owner.Thing;
25 EClass.pc.PlaySound("equip", 1f, true);
26 }
27 LayerInventory.SetDirty(this.owner.Thing);
28 WidgetCurrentTool.dirty = true;
29 return true;
30 }
31
32 // Token: 0x06001E92 RID: 7826 RVA: 0x000AF75F File Offset: 0x000AD95F
33 public override void OnSetCardGrid(ButtonGrid b)
34 {
35 if (EClass.player.eqBait == this.owner && EClass.player.eqBait.GetRootCard() == EClass.pc)
36 {
37 b.Attach("equip", false);
38 }
39 }
40}
Definition Chara.cs:12
Definition Msg.cs:7
Definition Thing.cs:10