protected virtual void RemoveItemEffects(Item item) { this.HealthPoints -= item.HealthEffect; this.DefensePoints -= item.DefenseEffect; if (this.HealthPoints < 0) { this.HealthPoints = 1; } }
protected override void RemoveItemEffects(Item item) { base.RemoveItemEffects(item); //this.HealingPoints -= item.HealthEffect; }
protected override void ApplyItemEffects(Item item) { base.ApplyItemEffects(item); //this.HealingPoints += item.HealthEffect; }
public override void RemoveFromInventory(Item item) { this.Inventory.Remove(item); this.RemoveItemEffects(item); }
public override void AddToInventory(Item item) { this.Inventory.Add(item); this.ApplyItemEffects(item); }
protected virtual void ApplyItemEffects(Item item) { this.HealthPoints += item.HealthEffect; this.DefensePoints += item.DefenseEffect; }
public abstract void RemoveFromInventory(Item item);
public abstract void AddToInventory(Item item);
protected override void RemoveItemEffects(Item item) { base.RemoveItemEffects(item); this.attackPoints -= item.AttackEffect; }
protected override void ApplyItemEffects(Item item) { base.ApplyItemEffects(item); this.attackPoints += item.AttackEffect; }