Example #1
0
    public static void GetModifiedName( ModifierNames modName, string weaponName, out string outputString )
    {
        if( modName == ModifierNames.DEFAULT )
        {
            outputString = weaponName;
            return;
        }

        string name = modName.ToString();
        bool isPrefix = ( name.IndexOf( "_suffix" ) == -1 );
        name = name.Replace( "_", " " );

        if( isPrefix )
        {
            outputString = name + " " + weaponName;
        }
        else
        {
            name = name.Replace( " suffix", "" );
            outputString = weaponName + " " + name;
        }
    }
Example #2
0
    public static void GetModifiedName(ModifierNames modName, string weaponName, out string outputString)
    {
        if (modName == ModifierNames.DEFAULT)
        {
            outputString = weaponName;
            return;
        }

        string name     = modName.ToString();
        bool   isPrefix = (name.IndexOf("_suffix") == -1);

        name = name.Replace("_", " ");

        if (isPrefix)
        {
            outputString = name + " " + weaponName;
        }
        else
        {
            name         = name.Replace(" suffix", "");
            outputString = weaponName + " " + name;
        }
    }
Example #3
0
 public static float GetModifierValue(ModifierNames modName, Stats stat)
 {
     return(modifiers[(int)modName, (int)stat]);
 }
Example #4
0
 public static float GetModifierValue( ModifierNames modName, Stats stat )
 {
     return modifiers[ (int)modName, (int)stat ];
 }