Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitGiftPack.cs
1using System;
2
3// Token: 0x0200042D RID: 1069
4public class TraitGiftPack : TraitItem
5{
6 // Token: 0x1700096B RID: 2411
7 // (get) Token: 0x06001E3F RID: 7743 RVA: 0x000AE5C9 File Offset: 0x000AC7C9
8 public override string LangUse
9 {
10 get
11 {
12 return "actOpen";
13 }
14 }
15
16 // Token: 0x06001E40 RID: 7744 RVA: 0x000AE5D0 File Offset: 0x000AC7D0
17 public override bool OnUse(Chara c)
18 {
19 EClass.pc.Say("openDoor", EClass.pc, this.owner, null, null);
20 SE.Play("dropReward");
21 EClass.pc.Pick(ThingGen.Create("sketch_special", -1, -1), true, true);
22 EClass.pc.Pick(ThingGen.Create("letter_will", -1, -1), true, true);
23 EClass.pc.Pick(ThingGen.Create("crimAle", -1, -1), true, true);
24 this.owner.ModNum(-1, true);
25 return base.OnUse(c);
26 }
27}
Definition Chara.cs:12