示例#1
0
 public Weapon(string named, Realm styl, Spirit ench, Slot slt, OffensiveQualities off, int dam)
 {
     this.Name        = named;
     this.Style       = styl;
     this.Enchantment = ench;
     this.slot        = slt;
     this.SetOffenses(off);
     this.SetDefenses(DefensiveQualities.Unprotected);
     this.Usable = false;
     this.Damage = dam;
 }
示例#2
0
        public void SetOffense()
        {
            OffensiveQualities 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.GetOffenses();
            }
            //set enchantments to combined values.
            Offense = tempor;
        }
示例#3
0
文件: Armor.cs 项目: dekhaz/Adventure
 public override void SetOffenses(OffensiveQualities value)
 {
     base.SetOffenses(OffensiveQualities.Feeble);
 }
示例#4
0
文件: Item.cs 项目: dekhaz/Adventure
 public virtual void SetOffenses(OffensiveQualities value)
 {
     offenses = value;
 }