[MIRROR] [MODULAR] Fixed hypospray wait times #866
Merged
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.
Original PR: Skyrat-SS13/Skyrat-tg#25295
Fixed hypospray wait times so they actually used the constants other than "WAIT_INJECT" (and their counterparts based on variant). "WAIT_SPRAY", "DELUXE_WAIT_SPRAY" "SELF_SPRAY", and "DELUXE_SELF_SPRAY" are now used for hypos' spray functions, which not only makes the CMO's hypospray actually have an instant use option like it should, but also makes them more tweakable overall. "SELF_INJECT" is now also used for a hypo's inject function when used on yourself.
About The Pull Request
Added a new "selected_wait_time" variable in the afterattack method that is dynamically defined based on the hypospray's current use type and then used for the length of the doafter timer.
Why It's Good For The Game
I like hyposprays and just want them to be good. Also it annoys me.
Changelog
🆑 Ghasterino
fix: Made the hypospray actually use the "WAIT_" values for the respective mode it's using.
fix: Made the CMO hypospray actually instant, instead of seeming instant in code but not actually instant in game.
/:cl: