-
-
Notifications
You must be signed in to change notification settings - Fork 682
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
large refactor of machine/power code to cut down on processing time and wasted lists + Fixes age-old apc exploit #9968
Conversation
This PR is a branch of #9314, so that will need to be merged prior to this progressing. It is also why it inherited that PRs commit history. |
Ah, I see the issue. Terribad initialization, especially with random cola machines. Converting them into spawners(like they should be), seems to not be spamming me with del runtimes & fails anymore |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
guh, it breaks on ruins |
This is annoying, the processing machines bug hasnt been fixed at all! |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Cant figure this out, Ill come back to this at a later date (maybe) |
Ports:
About The Pull Request
PR 1 & 2
APCs now respect power input and output. Effectively, as much power goes into a cell that come out. It has to do with the way power is temporarily drawn from Equipment part of the APC(look at the linked pr, its 3 paragraphs) but it basically boils down to this:
PR 3
Kylerace explains it quite well.
This should also resolve some bugs introduced in #4401, namely non-processing machines not actually consuming power. I will need to do some testing to confirm.
TODO
Why It's Good For The Game
Cutting down subsystem costs is always good.
Fixing terrible power inconsistencies as well.
Testing Photographs and Procedure
Screenshots&Videos
Adjusting Air Alarm values
dreamseeker_32tNhryIxn.mp4
APC taking from surplus power, rather than from APC
surplus.1.mp4
Space ruin powering a cell charger
Changelog
🆑 rkz, Kylerace, ArcaneMusic, zxaber
refactor: refactors machine and power code to cut down on processing costs
fix: fixes non-processing machines failing to consume power
fix: fixes rechargers and inducers allowing for effectively infinite power. Now, what is used to charge these cells is exactly what can be expended from them.
tweak: rechargers now suck power directly from surplus energy on the powergrid, as opposed to the Equipment part of an APC. This is to prevent the former fix from making every single recharger on the station a mini-energy siphon.
/:cl: