space-station-14 icon indicating copy to clipboard operation
space-station-14 copied to clipboard

Fix Set Outfit command/verb

Open Tayrtahn opened this issue 1 month ago • 1 comments

About the PR

The admin setoutfit command and verb menu option now function in a reasonable manner again.

Specifically, the list of outfits no longer includes all the little fragments of outfits that were added for loadouts, and setting one of the job "gear" outfits no longer makes the character mostly-naked.

Why / Balance

These were broken when loadouts were added to the game, and they're handy for testing and admin stuff. Fixes #28785 Fixes #27112

Technical details

  • The list of outfits filters out any StartingGearPrototypes that are referenced by a LoadoutPrototype.
  • When applying the outfit, if it is referenced as a JobPrototype's StartingGear, that job's RoleLoadout is now looked up and applied to the character if possible. If the target character is controlled by a player, their loadout for that job will be used if they have one. If the command is targeting an Urist instead, the default (species-appropriate) loadout for that job will be used.

Media

Screenshot 2024-07-02 at 8 12 06 PM
  • [X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

Tayrtahn avatar Jul 03 '24 00:07 Tayrtahn