Ejemplo n.º 1
0
 public void SetDefenses()
 {
     //recheck defense
     inventory.SetDefenses();
     //apply defense
     Defense = inventory.GetDefenses();
 }
Ejemplo n.º 2
0
 public Armor(string named, Realm styl, Spirit ench, Slot slt, DefensiveQualities def)
 {
     this.Name        = named;
     this.Style       = styl;
     this.Enchantment = ench;
     this.slot        = slt;
     this.SetDefenses(def);
     this.SetOffenses(OffensiveQualities.Feeble);
 }
Ejemplo n.º 3
0
        public void SetDefenses()
        {
            DefensiveQualities tempor = 0x0;

            //go through each equipped item, check enchantment flags, or them to tempor to add it together.
            foreach (KeyValuePair <string, Item> worn in Equipment)
            {
                tempor = tempor | worn.Value.GetDefensiveTraits();
            }
            //set enchantments to combined values.
            Defenses = tempor;
        }
Ejemplo n.º 4
0
 public override void SetDefenses(DefensiveQualities value)
 {
     base.SetDefenses(value);
 }
Ejemplo n.º 5
0
 public virtual void SetDefenses(DefensiveQualities value)
 {
     defenses = value;
 }