stealthy cogging

APC locks after cogging, drain gets averted by prioritized powerallocation
This commit is contained in:
DeltaFire
2020-07-14 00:39:21 +02:00
parent c6ea2981f4
commit 8f1e191500
2 changed files with 13 additions and 1 deletions
@@ -30,6 +30,7 @@
var/obj/item/stock_parts/cell/cell = apc.cell
if(cell && (cell.charge / cell.maxcharge > COG_MAX_SIPHON_THRESHOLD))
cell.use(1)
apc.cog_drained++
adjust_clockwork_power(2) //Power is shared, so only do it once; this runs very quickly so it's about 10 W/second
else
adjust_clockwork_power(1) //Continue generating power when the cell has run dry; 5 W/second