Пример #1
0
        public void AddArmor(CArmor armor)
        {
            this.RemoveArmor();
            this._armor = armor;
            var mods = new Pair <object, List <StatMod> >(
                armor, armor.Model.GetStatModifiers());

            foreach (var perk in this._parent.GetPerks().GetEquipmentSStatPerks())
            {
                perk.TryModEquipmentMod(mods);
            }
            this._parent.GetStatMods().AddMod(mods);
        }
Пример #2
0
 public void RemoveArmor()
 {
     this._parent.GetStatMods().RemoveGearMods(this._armor);
     this._armor = null;
 }