public override void Load(TagCompound tag) { level = tag.GetInt(nameof(level)); attribute = (AttributeManager.Attribute)tag.GetInt(nameof(attribute)); curExp = tag.GetInt(nameof(curExp)); expToUpgrade = tag.GetInt(nameof(expToUpgrade)); rarity = (Rarity)tag.GetInt(nameof(rarity)); name = tag.GetString(nameof(name)); atkModifier = tag.GetFloat(nameof(atkModifier)); defModifier = tag.GetFloat(nameof(defModifier)); spdModifier = tag.GetFloat(nameof(spdModifier)); luckModifier = tag.GetFloat(nameof(luckModifier)); skills = tag.GetList <string>(nameof(skills)).ToList <string>(); }
public override void Load(TagCompound tag) { mutationValue = tag.GetFloat("mutationValue"); mutationThres = tag.GetFloat("mutationThres"); attr = (AttributeManager.Attribute)tag.GetInt("attribute"); }