Skip to content
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

Merged

Conversation

Ultimate-Fluff
Copy link
Contributor

@Ultimate-Fluff Ultimate-Fluff commented Jul 15, 2023

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:

@github-actions github-actions bot added Sprites Remove the soul from the game. Feature Feature coder badge labels Jul 15, 2023
@Ultimate-Fluff Ultimate-Fluff marked this pull request as ready for review July 15, 2023 09:13
@Ultimate-Fluff Ultimate-Fluff changed the title Removes duplicate icon states from .dmi files Removes dozens of duplicate icon states from over 50 dmi files Jul 15, 2023
@Ultimate-Fluff Ultimate-Fluff changed the title Removes dozens of duplicate icon states from over 50 dmi files Removes dozens of duplicate and empty icon states from over 50 dmi files Jul 15, 2023
Why is this still here?
Copy link
Contributor

@nauticall nauticall left a 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

@nauticall nauticall added the Sprites Approved confirmed no stray pixels label Jul 15, 2023
@Ultimate-Fluff
Copy link
Contributor Author

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.

@ThePiachu ThePiachu added Fix Fix one bug, make ten more Removal snap and removed Feature Feature coder badge labels Jul 15, 2023
@nauticall nauticall added this pull request to the merge queue Jul 16, 2023
Merged via the queue into cmss13-devs:master with commit 09a5191 Jul 16, 2023
github-actions bot added a commit that referenced this pull request Jul 16, 2023
cm13-github added a commit that referenced this pull request Jul 16, 2023
github-merge-queue bot pushed a commit that referenced this pull request Jul 24, 2023
# 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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fix one bug, make ten more Removal snap Sprites Approved confirmed no stray pixels Sprites Remove the soul from the game.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants