public void Apply(ItemSpec target) { var material = GetRandomMaterial(); target.SetProperty(new ItemSpecProperty(ItemSpecPropertyEnum.Material, material)); var multipliers = WearableItemStatsCache.GetBaseSlotDefences(_slot); var defences = WearableItemStatsCache.GetBaseDamageDefences(material, multipliers); target.SetDefenceMultipliers(defences); target.SetDurabilityMax(WearableItemStatsCache.GetBaseMaxDurability(material)); }