Elin Decompiled Documentation EA 23.279 Nightly Patch 1
Loading...
Searching...
No Matches
TraitDeedDivorce.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("actDivorce", delegate
10 {
11 Dialog.YesNo("dialogDivorce", delegate
12 {
13 EClass.pc.Say("use_whip", a, owner);
14 a.Talk("death_other");
15 EClass.pc.PlaySound("whip");
16 a.PlayAnime(AnimeID.Shiver);
17 a.PlaySound("laugh_death");
18 a.Divorce(EClass.pc);
19 owner.ModNum(-1);
20 EClass.pc.Say("divorce", EClass.pc, a);
21 a.ModAffinity(EClass.pc, -200);
22 });
23 return false;
24 }, a);
25 }
26 });
27 }
28}
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)