mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 16:44:43 +01:00
[NO GBP]Fixes static power usage not always drawing the remaining energy of an APC cell. (#82205)
## About The Pull Request Makes APC static power draw consume the remaining energy of the cell if there's not enough energy. ## Why It's Good For The Game Prevents a niche issue where an area composed entirely of static power users with no dynamic users from running forever with no power supply. ## Changelog 🆑 fix: Fixes static power usage from being able to not draw power. /🆑
This commit is contained in:
@@ -699,7 +699,7 @@
|
||||
terminal?.add_load(grid_used)
|
||||
var/cell_used = 0
|
||||
if(amount > grid_used)
|
||||
cell_used += cell.use(amount - grid_used)
|
||||
cell_used += cell.use(amount - grid_used, force = TRUE)
|
||||
return grid_used + cell_used
|
||||
|
||||
/// Draws power from the connected grid. When there isn't enough surplus energy from the grid, draws the rest of the demand from its cell. Returns the energy used.
|
||||
|
||||
Reference in New Issue
Block a user