示例#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;
        }
    }
示例#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;
        }
    }
示例#3
0
 public static float GetModifierValue(ModifierNames modName, Stats stat)
 {
     return(modifiers[(int)modName, (int)stat]);
 }
示例#4
0
 public static float GetModifierValue( ModifierNames modName, Stats stat )
 {
     return modifiers[ (int)modName, (int)stat ];
 }