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 TraitGeneMachine traitGeneMachine = c.pos.FindThing<TraitGeneMachine>();
15 if (traitGeneMachine != null && traitGeneMachine.GetTarget() == c)
17 int remainingHours = EClass.world.date.GetRemainingHours(c.conSuspend.dateFinish);
18 remainingHours = remainingHours * 2 / 3 - 10;
19 if (remainingHours < 0)
23 c.conSuspend.dateFinish = EClass.world.date.GetRaw(remainingHours);
24 c.PlayEffect(
"heal_tick");
25 c.PlaySound(
"heal_tick");
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
void ModNum(int a, bool notify=true)
override void TrySetHeldAct(ActPlan p)