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

Fixes Inconsistent Synth Maintenance Stations Icons #8153

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

Ultimate-Fluff
Copy link
Contributor

@Ultimate-Fluff Ultimate-Fluff commented Jan 19, 2025

About the pull request

This whole thing was a mess. Drathek and the coding community helped me put this together.

I had not experienced the issue where the Synthetic Maintenance System's icon state does not change properly when occupied and whether or not an APC is present, but investigating #4546 led me down a rabbit hole that resulted in me fixing several unrelated problems, mentioned in the changelog.

Just to be safe, however, the Synthetic Maintenance System now automatically spits somebody out if it has 0 charge under any circumstance and it refuses entry until it has some charge again. It needs a powered APC to charge, anyway, so...

Explain why it's good for the game

Fixes #4546

Testing Photographs and Procedure

Screenshots & Videos

image
This maintenance station has no APC powering it and it has 0 charge. It flashes red to let you know it's completely fucked.

image
This maintenance station has no APC powering it but it has a little bit of charge left, so the light is still green.

Changelog

🆑
imageadd: Synthetic Maintenance Stations now blink red if they cannot be operated under any circumstances.
imageadd: Synthetic Maintenance Stations flash green whether or not an APC is powering it to indicate it can still operate with charge.
fix: Synthetic Maintenance Stations now properly display the correct occupied icon state whether or not there is an APC powering the machine whilst somebody is inside.
code: Fixed and added code that makes Synthetic Maintenance Stations automatically eject patients if they run out of charge while operating.
code: Added code that disables patients from entering the Synthetic Maintenance Station if it has no charge left.
/:cl:

@cmss13-ci cmss13-ci bot added Sprites Remove the soul from the game. Fix Fix one bug, make ten more Code Improvement Make the code longer labels Jan 19, 2025
@Drulikar Drulikar changed the title Fixes #4546 Fix Inconsistent Synth Maintenance Stations Icons Jan 19, 2025
@Ultimate-Fluff
Copy link
Contributor Author

Thx for title edit, Drulikar

code/game/machinery/rechargestation.dm Outdated Show resolved Hide resolved
@harryob harryob marked this pull request as draft January 23, 2025 10:54
@Ultimate-Fluff Ultimate-Fluff changed the title Fix Inconsistent Synth Maintenance Stations Icons Fixes Inconsistent Synth Maintenance Stations Icons Jan 24, 2025
@Ultimate-Fluff Ultimate-Fluff marked this pull request as ready for review January 24, 2025 08:29
@harryob harryob added this pull request to the merge queue Jan 24, 2025
Merged via the queue into cmss13-devs:master with commit 6540404 Jan 24, 2025
30 checks passed
cmss13-ci bot added a commit that referenced this pull request Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Make the code longer Fix Fix one bug, make ten more Sprites Remove the soul from the game.
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

Synth Maintenance Stations don't indicate if someone is inside if the APC isn't on
2 participants