/// <summary> /// Gets the partcile prefab name of the given modifier type. Returns an empty string if no prefab exists. /// </summary> /// <param name="type">The type of modifier whose particle prefab name will be returned.</param> /// <returns></returns> public static string GetModifierParticlePrefab(ModiferTypes type) { switch (type) { default: return(string.Empty); case ModiferTypes.Fire: return("Flames"); case ModiferTypes.Ice: return("Ice"); case ModiferTypes.Acid: return("Acid"); } }
/// <summary> /// Creates a new instance of a modifier with a type and tier. /// </summary> /// <param name="type">The type of modifier this will be.</param> /// <param name="tier">The tier/power of the modifier.</param> public Modifier(ModiferTypes type, ushort tier) { this.type = type; this.tier = tier; }