public void SetDefenses() { //recheck defense inventory.SetDefenses(); //apply defense Defense = inventory.GetDefenses(); }
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); }
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; }
public override void SetDefenses(DefensiveQualities value) { base.SetDefenses(value); }
public virtual void SetDefenses(DefensiveQualities value) { defenses = value; }