public override void setup(ObjectActor subject, ObjectInteractable source) { duration = EXHAUSTEDDURATION; effectName = "Exhausted"; description = string.Format("Maximum Energy reduced by {0}.", ENERGYLOSS); subject.changeMaxEnergy(-ENERGYLOSS); conditionID = 10; base.setup(subject, source); }
public override void end(ObjectActor subject) { subject.changeMaxEnergy(ENERGYLOSS); Destroy(this); }