示例#1
0
 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);
 }
示例#2
0
 public override void end(ObjectActor subject)
 {
     subject.changeMaxEnergy(ENERGYLOSS);
     Destroy(this);
 }