Skip to content

Derive the weapon qual sort order from the award catalog #242

Description

@SyniRon

This was generated by AI during triage.

Behavior

Adding a weapon qual takes three edits that must agree by hand. The catalog gets the titles and a tag. WeaponQual.weaponOrder gets that same tag in its SOP slot. The plate PNG gets the tag as its filename.

Nothing ties the slot edit to the catalog edit. Forget the slot and the weapon sorts last on the bar. No test fails. That is how the Recoilless Rifle bug in #229 happened, and the Mk-82 tests from #227 cannot see the same mistake for the last weapon in the SOP.

After this change, one edit adds a weapon. The SOP order lives with the catalog, and the sort reads it from there. A weapon qual tag with no order fails a test instead of sorting last.

What a member sees on the uniform does not change. Every weapon stacks where the SOP puts it, same as today.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

clientAffects the client workspaceenhancementNew feature or requestready-for-agentFully specified, ready for an AFK agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions