public void stack() { if (multiple < MAXMULTIPLIER) { multiple++; subject.moveSpeedChangeValue(-speedChanged); } string newName = ("Crippled x" + multiple); string newDescription = string.Format("Speed reduced by {0}%.", (int)SPEEDLOSS * 100); bool timed = true; effectFunctions.iconUpdate(instanceList, newName, newDescription, timed, endTime); }
public override void end(ObjectActor subject) { subject.moveSpeedChangeValue(speedChanged * multiple); Destroy(this); }