예제 #1
0
 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);
 }
예제 #2
0
 public override void end(ObjectActor subject)
 {
     subject.changeMaxHealth(HEALTHLOSS);
     Destroy(this);
 }