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] Logs holochip credits worth zero or less credits and prevents them from spawning. #2133

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1139
Original PR: tgstation/tgstation#81605

About The Pull Request

This pull request will cause holochip/holocredits that spawn that have a value of 0 credits or less by any means to stack_trace, log where they were spawned, and then proceed to delete itself in init in order to prevent situations where holochips worth nothing to not spawn.

This also cleans up holochip spawning instances within the code in order to prevent any of those instances occurring pre-maturely, like with the luxury shuttle scanner gate and within the payment component when making change.

Lastly cleans up some variable names while I'm in the ballpark related to economy side things.

Why It's Good For The Game

Fixes #77969, or at the very least prevents as many situations where a null holochip is created without otherwise resulting in an error we can jump back to for future bug fixing. Additionally, pre-emptively cleans up a few situations in the code were we don't apply the amount ahead of time.

Changelog

🆑 ArcaneMusic
fix: Fixed instances where holochip/holocredits would spawn with a total of zero credits contained within.
/:cl:

…s them from spawning. (#1139)

* Logs holochip credits worth zero or less credits and prevents them from spawning. (#81605)

* Logs holochip credits worth zero or less credits and prevents them from spawning.

---------

Co-authored-by: ArcaneMusic <[email protected]>
@Iajret Iajret merged commit e946c70 into master Feb 26, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-1139 branch February 26, 2024 19:40
AnywayFarus added a commit that referenced this pull request Feb 26, 2024
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