public override void setup(ObjectActor subject, ObjectInteractable source) { duration = WOUNDEDDURATION; endTime = duration + Time.time; effectName = "Wounded"; description = string.Format("Maximum health reduced by {0}.", HEALTHLOSS); subject.changeMaxHealth(-HEALTHLOSS); conditionID = 9; base.setup(subject, source); }
public override void end(ObjectActor subject) { subject.changeMaxHealth(HEALTHLOSS); Destroy(this); }