mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Fixes recharge stations charge rates (#82191)
## About The Pull Request - Fixes #82190 Have to now use the assigned constants and not magic number `10000`. Also stuff will take the exact charge needed without any wastage. ## Changelog 🆑 fix: recharge stations draw the same amount of power as before but directly from grid(without using apc cell power) and won't waste any excess power /🆑 --------- Co-authored-by: san7890 <the@san7890.com>
This commit is contained in:
@@ -189,13 +189,13 @@
|
||||
COMSIG_LIVING_ELECTROCUTE_ACT,
|
||||
))
|
||||
|
||||
/obj/item/circuit_component/bci_core/proc/on_borg_charge(datum/source, amount)
|
||||
/obj/item/circuit_component/bci_core/proc/on_borg_charge(datum/source, datum/callback/charge_cell, seconds_per_tick)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
if (isnull(parent.cell))
|
||||
return
|
||||
|
||||
parent.cell.give(amount)
|
||||
charge_cell.Invoke(parent.cell, seconds_per_tick)
|
||||
|
||||
/obj/item/circuit_component/bci_core/proc/on_electrocute(datum/source, shock_damage, shock_source, siemens_coefficient, flags)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
Reference in New Issue
Block a user