示例#1
0
 public override void setup(ObjectActor subject, ObjectInteractable source)
 {
     duration      = CRIPPLEDDURATION;
     effectName    = "Crippled";
     description   = string.Format("Speed reduced by {0}%.", SPEEDLOSS * 100);
     MAXMULTIPLIER = 3;
     speedChanged  = subject.moveSpeedChangePercent(-SPEEDLOSS);
     conditionID   = 8;
     base.setup(subject, source);
 }
示例#2
0
 public void setup(ObjectActor subject, ObjectInteractable source)
 {
     Debug.Log("WARNING. SENTENCED EFFECT NOT FULLY IMPLEMENTED");
     instanceList = new List <GameObject>();
     timed        = true;
     duration     = SENTENCEDDURATION;
     endTime      = duration + Time.time;
     effectName   = "Crippled";
     description  = string.Format("Speed reduced by {0}%.", SPEEDLOSS * 100);
     this.subject = subject;
     this.source  = source;
     speedChanged = subject.moveSpeedChangePercent(-SPEEDLOSS);
 }