Wycademy/src/Wycademy/Commands/Services/MotionValueService.cs
/// <summary>
/// Converts alternate weapon names into their abbreviated form.
/// </summary>
/// <param name="original">The original input.</param>
/// <returns>The shortened name.</returns>
Converts alternate weapon names into their abbreviated form.
Converts alternate weapon names into their abbreviated form .
private string AliasWeaponNames(string original)
        {
            if (!WEAPON_FILENAMES.Contains(original))
            {
                switch (original)
                {
                    case "great-sword":
                        return "gs";
                    case "long-sword":
                        return "ls";
                    case "sword-and-shield":
                    case "sword-&-shield":
                    case "s&s":
                        return "sns";
                    case "dual-blades":
                        return "db";
                    case "gunlance":
                    case "gun-lance":
                        return "gl";
                    case "hunting-horn":
                        return "hh";
                    case "switch-axe":
                    case "switch_axe":
                    case "switchaxe":
                        return "sa";
                    case "charge-blade":
                    case "chargeblade":
                        return "cb";
                    case "insect-glaive":
                    case "insectglaive":
                        return "ig";
                    case "light-bowgun":
                        return "lbg";
                    case "heavy-bowgun":
                        return "lbg";
                    default:
                        throw new ArgumentException();
                }
            }
            return original;
        }
private string AliasWeaponNames ( string original ) { if ( ! WEAPON_FILENAMES . Contains ( original ) ) { switch ( original ) { case " " : return " " ; case " " : return " " ; case " " : case " " : case " " : return " " ; case " " : return " " ; case " " : case " " : return " " ; case " " : return " " ; case " " : case " " : case " " : return " " ; case " " : case " " : return " " ; case " " : case " " : return " " ; case " " : return " " ; case " " : return " " ; default : throw new ArgumentException ( ) ; } } return original ; }
Converts alternate weapon names into their abbreviated form.
Converts alternate weapon names into their abbreviated form .
// Only convert it if the name isn't already in the preferred form. // If the if statement is never entered then just return the original input.
The shortened name.
The shortened name .
original
string
The original input.
The original input .