Exemple #1
0
 public Inventory HasHelmetEquipped(ArmourBase armour)
 {
     if (armour.ArmourType.Equals(ArmourType.HELMET))
     {
         this.inventory.EquipNewHelmet(armour);
     }
     return(inventory);
 }
Exemple #2
0
 public Inventory HasArmour(ArmourBase armour)
 {
     this.inventory.AddItem(armour);
     return(inventory);
 }
Exemple #3
0
 internal void EquipNewHelmet(ArmourBase newHelm)
 {
     System.Console.WriteLine($"You put away the {WieldedHelmet.Name} and equip the {newHelm.Name} ");
     this.Items.Add(this.WieldedHelmet);
     this.WieldedHelmet = newHelm;
 }