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] Fixes tesla zaps. #367

Merged
merged 1 commit into from
Oct 31, 2023
Merged

[MIRROR] Fixes tesla zaps. #367

merged 1 commit into from
Oct 31, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#24698
Original PR: tgstation/tgstation#79398

About The Pull Request

Closes #79297
Closes #79312

Due to the new cutoff parameter being added to tesla_zap() (from #78310), and most callers used positional arguments instead of keywords, the zap flags was getting fed the shocked_targets list and maybe other junk. This caused a bunch of unusual phenomena. This is fixed by using keyword arguments.

Tesla zaps that use the grid were significantly weaker in terms of damage than they're supposed to be. This was a byproduct of trying to convert everything to joules and removing unnecessary power multipliers. This is fixed by reverting the damage scaling and zap power of zap sources that aren't based on grid. Technically this will cause the zaps from other sources to have less power, but these tend to not be able to put power on grid, so this wouldn't have any change other than what a grounding rod displays. Doesn't really matter.

Logs machine explosions from zap_act. Not the most helpful log (would take a lot of effort to add an extra parameter to pass the source), but better than nothing.

Probably other stuff I did, lol.

Why It's Good For The Game

Stops zap fuckery. Admins can now find the explosions when a 9GeV engine decides to go haywire or whatever.

Changelog

🆑 Pickle-Coding
fix: Fixes tesla zaps being weird.
admin: Logs explosions from explosive zaps.
/:cl:

* [NO GBP]Fixes tesla zaps. (#79398)

## About The Pull Request
Closes #79297
Closes #79312

Due to the new cutoff parameter being added to tesla_zap() (from
#78310), and most callers used positional arguments instead of keywords,
the zap flags was getting fed the shocked_targets list and maybe other
junk. This caused a bunch of unusual phenomena. This is fixed by using
keyword arguments.

Tesla zaps that use the grid were significantly weaker in terms of
damage than they're supposed to be. This was a byproduct of trying to
convert everything to joules and removing unnecessary power multipliers.
This is fixed by reverting the damage scaling and zap power of zap
sources that aren't based on grid. Technically this will cause the zaps
from other sources to have less power, but these tend to not be able to
put power on grid, so this wouldn't have any change other than what a
grounding rod displays. Doesn't really matter.

Logs machine explosions from zap_act. Not the most helpful log (would
take a lot of effort to add an extra parameter to pass the source), but
better than nothing.

Probably other stuff I did, lol.
## Why It's Good For The Game
Stops zap fuckery. Admins can now find the explosions when a 9GeV engine
decides to go haywire or whatever.
## Changelog
:cl:
fix: Fixes tesla zaps being weird.
admin: Logs explosions from explosive zaps.
/:cl:

* [NO GBP]Fixes tesla zaps.

---------

Co-authored-by: Pickle-Coding <[email protected]>
@Iajret Iajret merged commit b938c10 into master Oct 31, 2023
24 checks passed
@Iajret Iajret deleted the upstream-mirror-24698 branch October 31, 2023 19:34
AnywayFarus added a commit that referenced this pull request Oct 31, 2023
Iajret pushed a commit that referenced this pull request Jan 26, 2024
…ebalancing (it's better now... usually) (#367)

* Night vision uses eye color to determine overlay hue + photophobia scaling

* Use correct restoration proc for eye sensitivity

* Allow direct selection of night vision color tinting, default to left eye color if not available

* Modularization formatting improvements

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

* Further modularization & readability improvements, and refresh eyes after photophobia flash_protect adjustment

* Use correct var name

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

---------

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

Successfully merging this pull request may close these issues.

3 participants