Esempio n. 1
0
 public Inventory HasHelmetEquipped(ArmourBase armour)
 {
     if (armour.ArmourType.Equals(ArmourType.HELMET))
     {
         this.inventory.EquipNewHelmet(armour);
     }
     return(inventory);
 }
Esempio n. 2
0
 public Inventory HasArmour(ArmourBase armour)
 {
     this.inventory.AddItem(armour);
     return(inventory);
 }
Esempio n. 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;
 }