public void CopyResistancesTo(DamageResistanceHolder aHolder)
        {
            if (aHolder.myResistanceLookup == null)
            {
                Debug.Write("Null resistances added together!");
                return;
            }
            Debug.Assert(myResistanceLookup != null);
            List <DamageResistance> myResistancesToSend = myResistanceLookup.Values.ToList();

            aHolder.AddArmorResistances(myResistancesToSend);
        }
Ejemplo n.º 2
0
 public Clothing(string[] slotsUsed, ItemAttributes.DamageResistanceHolder myDamageResistances, Vector3 myLocalPosition)
 {
     this.myResistances   = myDamageResistances;
     this.slotsUsed       = slotsUsed;
     this.myLocalPosition = myLocalPosition;
 }