Elin Decompiled Documentation EA 23.153 Nightly
Loading...
Searching...
No Matches
TraitWhipEgg.cs
Go to the documentation of this file.
2{
3 public override void OnCreate(int lv)
4 {
5 owner.c_charges = 6;
6 }
7
8 public override void TrySetHeldAct(ActPlan p)
9 {
10 p.pos.ListCards().ForEach(delegate(Card c)
11 {
12 if (p.IsSelfOrNeighbor && EClass.pc.CanSee(c))
13 {
14 p.TrySetAct("actWhip", delegate
15 {
16 EClass.pc.Say("use_whip", c, owner);
17 EClass.pc.Say("use_scope2", c);
18 EClass.player.forceTalk = true;
19 EClass.pc.Talk("egg");
20 c.Talk("pervert2");
21 EClass.pc.PlaySound("whip");
22 c.PlayAnime(AnimeID.Shiver);
23 if (c.isChara)
24 {
25 c.Chara.OnInsulted();
26 }
27 c.MakeEgg();
28 owner.ModCharge(-1);
29 if (owner.c_charges <= 0)
30 {
31 EClass.pc.Say("spellbookCrumble", owner);
32 owner.Destroy();
33 }
34 EClass.player.ModKarma(-1);
35 return true;
36 }, c);
37 }
38 });
39 }
40}
Point pos
Definition: ActPlan.cs:150
bool IsSelfOrNeighbor
Definition: ActPlan.cs:176
Definition: Card.cs:11
bool CanSee(Card c)
Definition: Chara.cs:1070
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
List< Card > ListCards(bool includeMasked=false)
Definition: Point.cs:1031
override void TrySetHeldAct(ActPlan p)
Definition: TraitWhipEgg.cs:8
override void OnCreate(int lv)
Definition: TraitWhipEgg.cs:3