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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attrition fix #15820

Merged
merged 3 commits into from May 14, 2024
Merged

Attrition fix #15820

merged 3 commits into from May 14, 2024

Conversation

Lumipharon
Copy link
Contributor

@Lumipharon Lumipharon commented May 8, 2024

About The Pull Request

Fixes a bug with attrition, where it only checks attrition when you first open the spawn window. So if multiple people open it at the same time (most commonly when rapid reserves is used), more people could spawn than you had attrition for.

This led to negative attrition in some cases, and is also what would break ally spawns (as even though they have zero attrition cost, once you're in the negatives, you're below that cost)

Why It's Good For The Game

bug fix.

Changelog

馃啈
fix: Campaign: Fixed an issue with attrition going into the negatives, allowing for more respawns than intended, and breaking allied spawns
/:cl:

@tgstation-server tgstation-server added the Fix Fixes an issue with the game. label May 8, 2024
Comment on lines 327 to 328
to_chat(usr, "<span class='warning'>Unable to spawn. Insufficient attrition.<spawn>")
return
Copy link
Member

Choose a reason for hiding this comment

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

use span class macros

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated a bunch

@Lumipharon Lumipharon requested a review from TiviPlus May 10, 2024 22:36
@TiviPlus TiviPlus merged commit 1a7b400 into tgstation:master May 14, 2024
33 checks passed
github-actions bot added a commit that referenced this pull request May 14, 2024
@Lumipharon Lumipharon deleted the attrition_fix branch May 14, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fixes an issue with the game.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants