public static IReadOnlyList <ModifierGenerator> GenerateSet(string modifierFormat, double modifierValue, params string[] modifierNames)
        {
            var sets = new ModifierGenerator[modifierNames.Length];

            for (int i = 0; i < modifierNames.Length; i++)
            {
                sets[i] = new ModifierGenerator(string.Format(modifierFormat, modifierNames[i]), modifierValue);
            }
            return(sets);
        }
Example #2
0
 public override string ToString()
 {
     return($"godEdict_{name} = {{\n{ModifierGenerator.Join(modifiers)}\n}}\n");
 }