public void stack() { if (subject.getBurningEffect() != null) { subject.beginBurning(source); subject.beginWounded(source); } }
public override bool activate(ObjectActor self, ObjectCombatable target, out string message) { ObjectActor actor = (ObjectActor)target; if (actor != null) { actor.beginBleeding(self); actor.beginBurning(self); actor.beginChilled(self); actor.beginConcussed(self); actor.beginCrippled(self); actor.beginExhausted(self); actor.beginPoisoned(self); actor.beginScarred(self); actor.beginShattered(self); actor.beginWeakened(self); actor.beginWounded(self); } message = ""; return(false); }
public override bool activate(ObjectActor self, ObjectCombatable target, out string message) { ObjectActor targetActor = target as ObjectActor; ObjectInteractable source = self as ObjectInteractable; if (targetActor != null) { GloriousDawn preexisting = target.gameObject.GetComponent <GloriousDawn>(); if (preexisting == null) { GloriousDawn regeneration = target.gameObject.AddComponent <GloriousDawn>(); regeneration.setup(targetActor, source, skillName, briefSkillDescription, duration, stackHealing); targetActor.applyNewEffect(regeneration); targetActor.beginBurning(self); } else { preexisting.stack(); } } message = ""; return(false); }
public override bool activate(ObjectActor self, ObjectCombatable target, out string message) { ObjectActor targetActor = target as ObjectActor; ObjectInteractable source = self as ObjectInteractable; if (targetActor != null) { GrennsFire preexisting = target.gameObject.GetComponent <GrennsFire>(); if (preexisting == null) { GrennsFire grennsFire = target.gameObject.AddComponent <GrennsFire>(); grennsFire.setup(targetActor, source, skillName, briefSkillDescription, duration, DEGENSPEED); targetActor.applyNewEffect(grennsFire); targetActor.beginBurning(self); } else { preexisting.stack(); } } message = ""; return(false); }