Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitSyringeHeaven.cs
Go to the documentation of this file.
2{
3 public override bool CanChangeHeight => false;
4
5 public override void TrySetHeldAct(ActPlan p)
6 {
7 p.pos.Charas.ForEach(delegate(Chara c)
8 {
9 p.TrySetAct("actInject".lang("", c.Name), delegate
10 {
11 EClass.pc.PlaySound("syringe");
12 EClass.pc.Say("syringe", EClass.pc, owner.NameOne, c.Name);
13 c.PlayEffect("blood").SetParticleColor(EClass.Colors.matColors[c.material.alias].main).Emit(20);
14 c.AddBlood(2 + EClass.rnd(2));
15 c.AddCondition<ConHallucination>(50);
16 if ((c.trait is TraitLittleOne) & !c.HasCondition<ConDeathSentense>())
17 {
18 EClass.player.ModKarma(3);
19 c.AddCondition<ConDeathSentense>(100, force: true);
20 }
21 owner.ModNum(-1);
22 return false;
23 }, c);
24 });
25 }
26}
Point pos
Definition: ActPlan.cs:149
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
Definition: ActPlan.cs:344
string Name
Definition: Card.cs:2013
void ModNum(int a, bool notify=true)
Definition: Card.cs:3262
Definition: Chara.cs:10
List< Chara > Charas
Definition: Point.cs:316
override void TrySetHeldAct(ActPlan p)
override bool CanChangeHeight
Definition: Trait.cs:7
Card owner
Definition: Trait.cs:26