Elin Decompiled Documentation EA 23.284 Nightly Patch 2
Loading...
Searching...
No Matches
TraitDeedLostRing.cs
Go to the documentation of this file.
2{
3 public override void TrySetHeldAct(ActPlan p)
4 {
5 p.pos.ListCharas().ForEach(delegate(Chara a)
6 {
7 if (a.IsMarried)
8 {
9 p.TrySetAct("actReissue", delegate
10 {
11 EClass.pc.Say("use_whip", a, owner);
12 a.Talk("death_other");
13 EClass.pc.PlaySound("whip");
14 a.PlayAnime(AnimeID.Shiver);
15 a.PlaySound("dropRewardXmas");
16 owner.ModNum(-1);
17 Thing thing = ThingGen.Create("amulet_engagement");
18 thing.Attune(a);
19 thing.elements.ModBase(484, 3);
20 if (thing.rarity < Rarity.Mythical)
21 {
22 thing.rarity = Rarity.Mythical;
23 }
24 EClass.player.DropReward(thing, silent: true);
25 thing = ThingGen.Create("ring_engagement");
26 thing.Attune(a);
27 thing.elements.ModBase(484, 3);
28 if (thing.rarity < Rarity.Mythical)
29 {
30 thing.rarity = Rarity.Mythical;
31 }
32 EClass.player.DropReward(thing);
33 return false;
34 }, a);
35 }
36 });
37 }
38}
Point pos
Definition: ActPlan.cs:152
Definition: Chara.cs:10
bool IsMarried
Definition: Chara.cs:611
List< Chara > ListCharas()
Definition: Point.cs:1171
override void TrySetHeldAct(ActPlan p)