Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitGiftNewYear.cs
1using System;
2
3// Token: 0x0200042E RID: 1070
5{
6 // Token: 0x06001E42 RID: 7746 RVA: 0x000AE66C File Offset: 0x000AC86C
7 public override bool OnUse(Chara c)
8 {
9 EClass.pc.Say("openDoor", EClass.pc, this.owner, null, null);
10 SE.Play("dropReward");
11 EClass.pc.Pick(ThingGen.Create("kagamimochi", -1, -1), true, true);
12 EClass.pc.Pick(ThingGen.Create("1134", -1, -1), true, true);
13 Chara chara = CharaGen.Create("putty_snow", -1);
14 EClass._zone.AddCard(chara, (this.owner.ExistsOnMap ? this.owner.pos : EClass.pc.pos).GetNearestPoint(false, false, true, false));
15 Msg.Say("package_chara", chara, this.owner, null, null);
16 chara.MakeAlly(true);
17 for (int i = 0; i < 3; i++)
18 {
19 chara = CharaGen.Create("bell_silver", -1);
20 chara.c_originalHostility = (chara.hostility = Hostility.Neutral);
21 EClass._zone.AddCard(chara, EClass._map.GetRandomSurface(false, true, false));
22 }
23 this.owner.ModNum(-1, true);
24 return true;
25 }
26}
Definition Chara.cs:12
Definition Msg.cs:7