Elin Decompiled Documentation EA 23.357 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 {
11 {
12 return;
13 }
14 p.pos.ListCards().ForEach(delegate(Card c)
15 {
16 if (p.IsSelfOrNeighbor && EClass.pc.CanSee(c))
17 {
18 p.TrySetAct("actWhip", delegate
19 {
20 EClass.pc.Say("use_whip", EClass.pc, c, owner.Name);
21 EClass.pc.Say("use_scope2", c);
22 EClass.player.forceTalk = true;
23 EClass.pc.Talk("egg");
24 c.Talk("pervert2");
25 EClass.pc.PlaySound("whip");
26 c.PlayAnime(AnimeID.Shiver);
27 if (c.isChara)
28 {
29 c.Chara.OnInsulted();
30 }
31 Thing c2 = c.MakeEgg();
32 c.Say("item_drop", c2);
33 owner.ModCharge(-1);
34 if (owner.c_charges <= 0)
35 {
36 EClass.pc.Say("spellbookCrumble", owner);
37 owner.Destroy();
38 }
39 EClass.player.ModKarma(-1);
40 if (c.isChara && c.Chara.mimicry != null)
41 {
42 c.Chara.mimicry.Reveal(EClass.pc);
43 }
44 return true;
45 }, c);
46 }
47 });
48 }
49}
Point pos
Definition: ActPlan.cs:152
bool IsSelfOrNeighbor
Definition: ActPlan.cs:178
Definition: Card.cs:11
bool CanSee(Card c)
Definition: Chara.cs:1279
Definition: EClass.cs:6
static Game game
Definition: EClass.cs:9
static Zone _zone
Definition: EClass.cs:21
static Chara pc
Definition: EClass.cs:15
bool disableUsermapBenefit
GamePrincipal principal
Definition: Game.cs:225
List< Card > ListCards(bool includeMasked=false)
Definition: Point.cs:1053
override void TrySetHeldAct(ActPlan p)
Definition: TraitWhipEgg.cs:8
override void OnCreate(int lv)
Definition: TraitWhipEgg.cs:3
virtual bool IsUserZone
Definition: Zone.cs:278