void BuildItemSuffixDatabase(object sender, CommandEventArgs e) { ItemSuffix newBaseSuffix = new ItemSuffix("_PhysicalDamage", "Physical Damage", float.MaxValue); ItemSuffix newBaseSuffix1 = new ItemSuffix("_MiningPower", "Determines amount of damage dealt to ore.", float.MaxValue); ItemSuffix newBaseSuffix2 = new ItemSuffix("_HealPower", "Determins how much health is gained upon consumption", float.MaxValue); Database._ItemSuffixDatabase.AddBaseSuffix(newBaseSuffix); Database._ItemSuffixDatabase.AddBaseSuffix(newBaseSuffix1); Database._ItemSuffixDatabase.AddBaseSuffix(newBaseSuffix2); Database._ItemSuffixDatabase.Save(); }
public void AddBaseSuffix(ItemSuffix suffixToAdd) { suffixToAdd.ID = _BaseSuffixDatabase.Count + 1; _BaseSuffixDatabase.Add(suffixToAdd); Debug.Log("[Item Suffix Database] Added base suffix " + suffixToAdd.Name + " to database.", ConsoleColor.Cyan); }