Esempio n. 1
0
        public override Item Equip(IInventory inventory)
        {
            BodyArmor old = inventory.BodyArmor;

            inventory.BodyArmor = this;
            return(old);
        }
Esempio n. 2
0
        void Start()
        {
            Assert.IsNotNull(ground);
            Assert.IsNotNull(itemComparison);

            weapon = startingWeapon.BuildWeapon("Starter Dagger");
            shield = startingShield.BuildShield("Starter Shield");
            armor  = startingArmor.BuildArmor("Starter Armor");
        }
Esempio n. 3
0
 BodyArmor ReplaceArmor(BodyArmor armor)
 {
     return(Replace(armor, ref this.armor));
 }