Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Character creation 'Preferred Armor' preview (#5033)
# About the pull request Makes the armour worn by the preview dummy in the character creation menu show the user's 'Preferred Armor' setting. Also fixes a bug I found where the 'Padded' armour type would have its sprite replaced with the user's preferred style when vended. This specifically affected the 'Padded' variant because that has the icon states of `L1`/`1`/`H1` for Light/Medium/Heavy, and `post_vendor_spawn_hook()` worked by replacing any `1`s in the `icon_state` with the user's preference. (`post_vendor_spawn_hook()` now checks if the armour has style variants before anything else.) # Explain why it's good for the game The 'Preferred Armor' setting can be a bit confusing if you don't actually know what each armour style looks like. (Which I personally didn't until making this PR.) # Testing Photographs and Procedure <details> <summary>Screenshots & Videos</summary> **Character creation preview:** https://github.com/cmss13-devs/cmss13/assets/57483089/e2ac29ea-c290-447f-b234-a3ca82397e23 <hr> **Padded armour bug before:** (Preferred Armor set to 'Skull') https://github.com/cmss13-devs/cmss13/assets/57483089/ba0bc7d0-2ea0-4d07-8185-3d8920790463 **Padded armour bug after:** (Preferred Armor set to 'Skull') https://github.com/cmss13-devs/cmss13/assets/57483089/397ad4b4-a7e5-4433-84b5-196ce5df7ded </details> # Changelog :cl: add: Made the character preview in the character creation menu show the 'Preferred Armor' setting. fix: Fixed 'Padded' armour being replaced by the user's armour style preference when vended. /:cl:
- Loading branch information