コード例 #1
0
ファイル: ExaustedEffect.cs プロジェクト: ren38/Scripts
 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
ファイル: ExaustedEffect.cs プロジェクト: ren38/Scripts
 public override void end(ObjectActor subject)
 {
     subject.changeMaxEnergy(ENERGYLOSS);
     Destroy(this);
 }