Ejemplo n.º 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;
        }
    }
Ejemplo n.º 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;
        }
    }