//Return the equivalent of this modified by debuff mod public CasterStats modify(BuffDebuff mod) { float atk = attack * mod.Attack; float def = defense * mod.Defense; float spd = speed * mod.Speed; float acc = accuracy * mod.Accuracy; int evade = Mathf.FloorToInt(evasion * mod.Evasion); float[] vE; vE = new float[Elements.count]; for (int i = 0; i < Elements.count; i++) { vE[i] = mod.modElementState(vsElement[i], i); } return(new CasterStats(name, chatDatabaseID, max_hp, max_shield, max_stagger, atk, def, spd, acc, evade, vE)); }
public float getFloatVsElement(BuffDebuff mod, int element) { return(mod.modElementState(vsElement[element], element)); }