Power fix

Fixes a bug with power draw in machines, where if they didn't have an overwritten process procedure they wouldn't draw power. Ex. Chem Masters. This fixes power draw for the safety tether
Safety tether now draws roughly balanced amount of power. draws 1kw default, drains about a fourth the apc cell's charge if unupgraded when teleporting.
This commit is contained in:
Haha26315
2022-09-12 08:43:56 -04:00
parent 1d1772e7e0
commit 9beae92ef3
4 changed files with 24 additions and 33 deletions
+7 -2
View File
@@ -157,8 +157,13 @@ Class Procs:
/obj/machinery/proc/locate_machinery()
return
/obj/machinery/process()//If you dont use process or power why are you here
return PROCESS_KILL
/obj/machinery/process()
//Here because if the machine doesn't have a process code attached to it or if PROCESS_KILL is returned it will no longer draw power.
if(is_operational())
return 1
else
return 0
/obj/machinery/proc/process_atmos()//If you dont use process why are you here
return PROCESS_KILL