protected virtual void RemoveItemEffects(Item item) { this.HealthPoints -= item.HealthEffect; this.DefensePoints -= item.DefenseEffect; if (this.HealthPoints < 0) { this.HealthPoints = 1; } }
public abstract void RemoveFromInventory(Item item);
protected virtual void ApplyItemEffects(Item item) { this.HealthPoints += item.HealthEffect; this.DefensePoints += item.DefenseEffect; }
public abstract void AddToInventory(Item item);