Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitLeash.cs
Go to the documentation of this file.
1public class TraitLeash : TraitTool
2{
3 public override void TrySetHeldAct(ActPlan p)
4 {
5 p.pos.ListCards().ForEach(delegate(Card a)
6 {
7 Chara c = a.Chara;
8 if (c != null && c.IsPCParty && !c.IsPC && p.IsSelfOrNeighbor && EClass.pc.CanSee(a))
9 {
10 p.TrySetAct(c.isLeashed ? "actUnleash" : "actLeash", delegate
11 {
12 EClass.pc.Say(c.isLeashed ? "use_leash2" : "use_leash", c, owner);
13 EClass.pc.PlaySound("ride");
14 c.isLeashed = !c.isLeashed;
15 if (c.isLeashed)
16 {
17 c.Talk("pervert2");
18 }
19 c.PlayAnime(AnimeID.Shiver);
20 return false;
21 }, c);
22 }
23 });
24 }
25}
Point pos
Definition: ActPlan.cs:149
bool IsSelfOrNeighbor
Definition: ActPlan.cs:175
Definition: Card.cs:11
virtual Chara Chara
Definition: Card.cs:1946
Definition: Chara.cs:10
override bool IsPC
Definition: Chara.cs:597
override bool IsPCParty
Definition: Chara.cs:600
bool CanSee(Card c)
Definition: Chara.cs:1027
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
List< Card > ListCards(bool includeMasked=false)
Definition: Point.cs:1015
override void TrySetHeldAct(ActPlan p)
Definition: TraitLeash.cs:3