示例#1
0
 public ArmorItemModel(string name, float weight, float value, float maxCondition, bool hidden, bool essential, string[] flags, string worldModel,
                       Dictionary <DamageType, float> damageResistance, Dictionary <DamageType, float> damageThreshold, ShieldParams shields, EquipSlot slot)
     : base(name, weight, value, maxCondition, hidden, essential, flags, worldModel)
 {
     DamageResistance = new Dictionary <DamageType, float>(damageResistance);
     DamageThreshold  = new Dictionary <DamageType, float>(damageThreshold);
     Shields          = shields;
     Slot             = slot;
 }
示例#2
0
        public StatsSet()
        {
            ShieldParams = new ShieldParams();

            DamageResistance = new Dictionary <DamageType, float>();
            DamageResistance.SetupFromEnum(default); //we still do this because there's probably old code that relies on it