Modular computers no longer use power when shutdown. (#9676)

Fixes #9671
This commit is contained in:
mikomyazaki
2020-08-13 21:00:20 +01:00
committed by GitHub
parent b1161c20fd
commit 5ffe658cbc
2 changed files with 8 additions and 1 deletions

View File

@@ -1,11 +1,12 @@
#define LISTENER_MODULAR_COMPUTER "modular_computers"
/obj/item/modular_computer/process()
handle_power() // Handles all computer power interaction
if(!enabled) // The computer is turned off
last_power_usage = 0
return FALSE
handle_power() // Handles all computer power interaction
if(damage > broken_damage)
shutdown_computer()
return FALSE