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

[MIRROR] [MODULAR] Fixed hypospray wait times #866

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Conversation

Steals-The-PRs
Copy link
Collaborator

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:

* Fixed hyposprays

* Update hyposprays_II.dm

removed blank spaces which weren't necessary for visibility

* Update modular_skyrat/modules/hyposprays/code/hyposprays_II.dm

Changes suggested by vinylspiders

Co-authored-by: Bloop <[email protected]>

---------

Co-authored-by: Bloop <[email protected]>
@Iajret Iajret merged commit 2b099ad into master Nov 28, 2023
24 checks passed
@Iajret Iajret deleted the upstream-mirror-25295 branch November 28, 2023 09:28
AnywayFarus added a commit that referenced this pull request Nov 28, 2023
Iajret pushed a commit that referenced this pull request Feb 9, 2024
* Adds an IS_CHANGELING helper (#81228)

## About The Pull Request

What it says on the tin. I also replaced checks with it everywhere I
found appropriate, hopefully without accidentally breaking anything.
## Why It's Good For The Game

We have a helper for most other antags, and it makes code a lot cleaner
and easier to read. I'm surprised we didn't have this one already.
## Changelog
:cl:
code: added an IS_CHANGELING() helper and used it where applicable
/:cl:

* Adds an IS_CHANGELING helper

---------

Co-authored-by: A miscellaneous Fern <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants