Elin Decompiled Documentation EA 23.265 Nightly Patch 2
Loading...
Searching...
No Matches
TraitSyringeHeaven.cs
Go to the documentation of this file.
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 EffectInject(EClass.pc, c);
10 c.AddCondition<ConHallucination>(50);
11 if (c.trait is TraitLittleOne && !c.HasCondition<ConDeathSentense>())
12 {
13 EClass.player.ModKarma(3);
14 c.AddCondition(Condition.Create(100, delegate(ConDeathSentense con)
15 {
16 con.euthanasia = true;
17 }), force: true);
18 }
19 owner.ModNum(-1);
20 return true;
21 }, c);
22 });
23 }
24}
Point pos
Definition: ActPlan.cs:152
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:368
string Name
Definition: Card.cs:2140
void ModNum(int a, bool notify=true)
Definition: Card.cs:3540
Definition: Chara.cs:10
List< Chara > Charas
Definition: Point.cs:340
override void TrySetHeldAct(ActPlan p)
Card owner
Definition: Trait.cs:28