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); }
public Clothing(string[] slotsUsed, ItemAttributes.DamageResistanceHolder myDamageResistances, Vector3 myLocalPosition) { this.myResistances = myDamageResistances; this.slotsUsed = slotsUsed; this.myLocalPosition = myLocalPosition; }