public void CorrectInvalidData() { if (graphicsId == null) { Debug.LogWarning("Item graphics not found, loading defaults..."); graphicsId = new ItemGraphicsID(Main.StaticData.Defaults.itemGraphicsId); } WeaponData.CorrectInvalidData(); }
public ItemData(ItemData other) { displayName = other.displayName; uniqueName = other.uniqueName; typeFlags = other.typeFlags; weaponData = new WeaponData(other.weaponData); skills = new List <SkillID>(other.skills); perks = new List <PerkID>(other.perks); slotCombinations = other.slotCombinations; graphicsId = other.graphicsId; }