Elin Decompiled Documentation EA 23.245 Nightly
Loading...
Searching...
No Matches
TraitSyringeHeaven.cs
Go to the documentation of this file.
1public class TraitSyringeHeaven : TraitTicketChampagne.TraitSyringe
2{
3 public override void TrySetHeldAct(ActPlan p)
4 {
5 p.pos.Charas.ForEach(delegate(Chara c)
6 {
7 p.TrySetAct("actInject".lang("", c.Name), delegate
8 {
9 EClass.pc.PlaySound("syringe");
10 EClass.pc.Say("syringe", EClass.pc, c, owner.NameOne);
11 c.PlayEffect("blood").SetParticleColor(EClass.Colors.matColors[c.material.alias].main).Emit(20);
12 c.AddBlood(2 + EClass.rnd(2));
13 c.AddCondition<ConHallucination>(50);
14 if ((c.trait is TraitLittleOne) & !c.HasCondition<ConDeathSentense>())
15 {
16 EClass.player.ModKarma(3);
17 c.AddCondition<ConDeathSentense>(100, force: true);
18 }
19 owner.ModNum(-1);
20 return false;
21 }, c);
22 });
23 }
24}
Point pos
Definition: ActPlan.cs:150
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:366
string Name
Definition: Card.cs:2137
void ModNum(int a, bool notify=true)
Definition: Card.cs:3515
Definition: Chara.cs:10
List< Chara > Charas
Definition: Point.cs:340
override void TrySetHeldAct(ActPlan p)
Card owner
Definition: Trait.cs:27