Elin Decompiled Documentation
EA 23.279 Nightly Patch 1
Loading...
Searching...
No Matches
TraitDeedDivorce.cs
Go to the documentation of this file.
1
public
class
TraitDeedDivorce
:
TraitTool
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
}
ActPlan
Definition:
ActPlan.cs:8
ActPlan.pos
Point pos
Definition:
ActPlan.cs:152
Chara
Definition:
Chara.cs:10
Chara.IsMarried
bool IsMarried
Definition:
Chara.cs:611
Point.ListCharas
List< Chara > ListCharas()
Definition:
Point.cs:1171
TraitDeedDivorce
Definition:
TraitDeedDivorce.cs:2
TraitDeedDivorce.TrySetHeldAct
override void TrySetHeldAct(ActPlan p)
Definition:
TraitDeedDivorce.cs:3
TraitTool
Definition:
TraitTool.cs:2
Elin
TraitDeedDivorce.cs
Generated by
1.9.6