Esempio n. 1
0
    public void CorrectInvalidData()
    {
        if (graphicsId == null)
        {
            Debug.LogWarning("Item graphics not found, loading defaults...");

            graphicsId = new ItemGraphicsID(Main.StaticData.Defaults.itemGraphicsId);
        }

        WeaponData.CorrectInvalidData();
    }
Esempio n. 2
0
 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;
 }