// Function from file: spell.dm public void adjust_var(Mob target = null, string type = null, int amount = 0) { target = target ?? Task13.User; switch ((string)(type)) { case "bruteloss": ((Mob_Living)target).adjustBruteLoss(amount); break; case "fireloss": ((Mob_Living)target).adjustFireLoss(amount); break; case "toxloss": ((Mob_Living)target).adjustToxLoss(amount); break; case "oxyloss": ((Mob_Living)target).adjustOxyLoss(amount); break; case "stunned": target.AdjustStunned(amount); break; case "weakened": target.AdjustWeakened(amount); break; case "paralysis": target.AdjustParalysis(amount); break; default: target.vars[type] += amount; break; } return; }