public virtual void OnUnequip(Classes user) { if (!this.user.Equals(user)) { return; } equipped = false; this.user = null; user.AddStats(-Str, -Dex, -Con, -Int, -Will, -End); user.UpdateStats(); user.AddResistences(-stunResist, -fireResist, -poisonResist, -dazeResist, -blindResist, -slowResist, -possessResist); }
public virtual void OnEquip(Classes user) { if (equipped) { return; } equipped = true; this.user = user; user.AddStats(Str, Dex, Con, Int, Will, End); user.UpdateStats(); user.AR += AR; user.initiative += initiative; user.speed += speed; user.SR += SR; user.BAB += BAB; user.AddResistences(stunResist, fireResist, poisonResist, dazeResist, blindResist, slowResist, possessResist); }