• Validate a possibly-changed shortcode for a weapon strike mode.

    A weapon's strike modes are stored as an array; each element carries its own shortcode, and no two modes on one weapon may share one. When the submitted shortcode is unchanged it is accepted as-is; otherwise it is checked with validateShortcode. On rejection the plan keeps the mode's current shortcode and reports the reason.

    Pure and Foundry-free.

    Parameters

    • currentShortcode: string

      The shortcode the strike mode is stored with today.

    • submittedShortcode: string

      The shortcode from the edited form (trimmed here).

    • siblingShortcodes: readonly string[]

      The shortcodes of the weapon's other strike modes (excluding the one being edited).

    Returns ShortcodeSavePlan

    A ShortcodeSavePlan.