-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes dozens of duplicate and empty icon states from over 50 dmi files #3895
Removes dozens of duplicate and empty icon states from over 50 dmi files #3895
Conversation
Why is this still here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are so MANY duplicates wow
approved! though please separate PRs of different scopes next time, i.e. have one PR be for the icon dupe removal and another separate PR for adding the dispenser sprites. had to comb through them to find those
I understand where you were coming from. First, I was only working on removing the duplicates, but then I realized viro and chem fridges are identical. However, if I were to delete them, they would produce missing icon state errors, so I differentiated them. |
# About the pull request This PR adds additional lints for dmi files: duplicate state names and a check if the count of states exceeds 512. (My first attempt at this was to modify the missing_icons unit test, but the icon_states proc ignores duplicate states.) Let me know if you would like the items_left/righthand files balanced more or if theres anything I may have missed. We don't currently have unit testing for on_mob icons due to how many just simply don't have icons. # Explain why it's good for the game Helps prevent accidental errors in DMI files that might otherwise get overlooked, and finishes the work that was started in #3895 . # Testing Photographs and Procedure <details> <summary>Screenshots & Videos</summary> ![image](https://github.com/cmss13-devs/cmss13/assets/76988376/f8623d3e-37b4-4a10-84e5-1b58eb492823) ![image](https://github.com/cmss13-devs/cmss13/assets/76988376/c95ea11f-e188-424b-b330-b27bec294cc9) </details> # Changelog :cl: Drathek code: Added additional lints to dmi/test.py to test for duplicate state names and excessive quantity and added another type path to the missing_icons unit_test. imageadd: Renamed and moved some icons around to comply with new testing. /:cl:
About the pull request
Self-explanatory. Several .dmis have been excluded from icon state purging, including some unnamed/unused turfs.
Explain why it's good for the game
Reduces bloat. Duh.
Changelog
🆑 Puckaboo2
spellcheck: Some duplicate icon states have been differentiated to prevent future missing icon state errors.
imageadd: Added new icon states for chemical and virology smartfridges.
del: Removed dozens of duplicate icon states from over 50 files to reduce bloat.
del: Removed duplicate empty icon states.
/:cl: