private void RemoveItemEffect(EquipableItem item) { if (item == null) { return; } if (item.stats != null) { OWNER.UpdateStatistics(item.stats, -1); } }
private void ApplyItemEffect(EquipableItem item) { if (item == null) { return; } //foreach (Buff buff in item.buffs) // owner.AddBuff(new BuffInstance() { buff = buff, duration = -1, origin = owner, target = owner, canExpire = false }); if (item.stats != null) { OWNER.UpdateStatistics(item.stats, 1); } }