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.
Behavior
Adding a weapon qual takes three edits that must agree by hand. The catalog gets the titles and a tag.
WeaponQual.weaponOrdergets 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.