-
Notifications
You must be signed in to change notification settings - Fork 566
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
Update Guns Lineart and Autowiki Handling of Base Types #5729
Merged
harryob
merged 4 commits into
cmss13-devs:master
from
Drulikar:Update_Guns_Lineart_Autowiki
Feb 19, 2024
Merged
Update Guns Lineart and Autowiki Handling of Base Types #5729
harryob
merged 4 commits into
cmss13-devs:master
from
Drulikar:Update_Guns_Lineart_Autowiki
Feb 19, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix test for missing lineart sprites (and downgrade to debug while we have missing sprites) Duplicate various lineart sprites where the icon is close enough.
github-actions
bot
added
Sprites
Remove the soul from the game.
Code Improvement
Make the code longer
labels
Feb 16, 2024
42 tasks
Rename 88m4 to _88m4 to comply with css requirements
harryob
approved these changes
Feb 19, 2024
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.
oh that css test is handy
cm13-github
added a commit
that referenced
this pull request
Feb 19, 2024
github-merge-queue bot
pushed a commit
that referenced
this pull request
Feb 23, 2024
# About the pull request **no actual sprite changes, I just renamed a couple** Fixes the 88 Mod 4 pistol not having a holster sprite, and showing as a bunch of orange question marks. This was happening because #5729 changed its `icon_state` from `"88m4"` to `"_88m4"` in order to make it actually work with CSS, but the sprite in `icons/obj/items/clothing/belts.dmi` wasn't renamed with it. I also changed the `item_state` to be the same and renamed the inhand sprites, just to reduce any future confusion. # Explain why it's good for the game Fixes the gun not being a gun. # Testing Photographs and Procedure <details> <summary>Screenshots & Videos</summary> **Before:** ![before](https://github.com/cmss13-devs/cmss13/assets/57483089/44ca7d17-440a-4ae2-8fbe-1df38a80e6f3) **After:** ![after](https://github.com/cmss13-devs/cmss13/assets/57483089/ad27fe53-4d36-4101-9122-135dad0bf620) </details> # Changelog :cl: fix: Fixed the 88 Mod 4 pistol's holster sprite. /:cl:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Code Improvement
Make the code longer
Sprites
Remove the soul from the game.
Unit Tests
Keep the game broken, forcefully.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the pull request
This PR is a follow up to #5631 and does several things related to gun icons:
GUN_UNUSUAL_DESIGN
since they can't be inspectedMissing Sprites in icons/obj/items/weapons/guns/lineart.dmi
Explain why it's good for the game
Now the 88m4 pistol doesn't show up as the default icon, and instead is the no_name icon:
Now spritesheet states that can't be displayed (such as the 88m4 because it starts with a digit) will fail unit tests:
but I ensured the rename to _88m4 still works correctly even with the empty state:
Testing Photographs and Procedure
See above.
All "new" sprites are duplicates of existing.
Changelog
🆑 Drathek
code: Autowiki now skips guns and mags without icon_states
code: Unit testing for spritesheets now enforces css requirements for class names
imageadd: Gun stats lineart now uses the no_name sprite again for guns without lineart
/:cl: