mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 21:19:44 +01:00
Yet Another Circuit Update (#5549)
* Circuit updates, adds new components, improves printer, new assemblies. * Finishes powernet circuit. * Adds wearable assemblies. * Finialization before merging with GLOB port. * Finishes circuit update, hopefully. * Forgot to undo map. * Removes debug output.
This commit is contained in:
@@ -106,6 +106,10 @@
|
||||
/obj/item/weapon/cell/proc/check_charge(var/amount)
|
||||
return (charge >= amount)
|
||||
|
||||
// Returns how much charge is missing from the cell, useful to make sure not overdraw from the grid when recharging.
|
||||
/obj/item/weapon/cell/proc/amount_missing()
|
||||
return max(maxcharge - charge, 0)
|
||||
|
||||
// use power from a cell, returns the amount actually used
|
||||
/obj/item/weapon/cell/proc/use(var/amount)
|
||||
if(rigged && amount > 0)
|
||||
|
||||
@@ -55,6 +55,12 @@
|
||||
else
|
||||
return 0
|
||||
|
||||
/obj/machinery/power/proc/viewload()
|
||||
if(powernet)
|
||||
return powernet.viewload
|
||||
else
|
||||
return 0
|
||||
|
||||
/obj/machinery/power/proc/disconnect_terminal() // machines without a terminal will just return, no harm no fowl.
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user