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

Some ammo rack fixes/tweaks #2639

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

benbot16
Copy link
Contributor

@benbot16 benbot16 commented May 5, 2024

About The Pull Request

This PR improves the code for ammo racks a bit, allows for loading ammo racks via attackby, adds some sanity checks to ammunition exiting ammo racks, and adjusts jamming SFX to only play when the ammo rack first jams. It also adjusts the to_chat messages to hopefully be a bit clearer.

It also moves ammo rack code into its own DM file, moves the circuits into the NSV circuit file, and organizes the code a bit.

Why It's Good For The Game

This fixes a couple of edge cases with racks (such as getting nulls in the ammo list, oil sometimes not fully repairing racks). It also removes the SFX-spam capability of jammed ammo racks, and hopefully cuts down on accidentally disassembling racks while trying to unjam them.

Testing Photographs and Procedure

Screenshots&Videos ![image](https://github.com/BeeStation/NSV13/assets/9423435/7c691e50-9bde-4811-8295-2af85c338d04)

image

image

Changelog

🆑
add: Ammo racks may now be loaded by attacking them with ammunition
tweak: Jam SFX now plays on jam instead of on load attempt
fix: Fixes a few ammo rack-related edge cases
/:cl:

@Bokkiewokkie Bokkiewokkie added Fix Tweak Munitions Issues and pull requests related to munitions. labels May 5, 2024
Bokkiewokkie
Bokkiewokkie previously approved these changes May 5, 2024
Copy link
Contributor

@Bokkiewokkie Bokkiewokkie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some suggestions, the code is fine

Bokkiewokkie
Bokkiewokkie previously approved these changes May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Active Test Merge Fix Munitions Issues and pull requests related to munitions. Tweak
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants