Changes power_change() to respect parent calls for toggling NOPOWER (#46486)

About The Pull Request

Similar to #46485
Now all relevant uses of power_change() call parent, theres a signal sent when a machine changes the NOPOWER flag, all remaining machines that were using power_change() instead of update_icon() have been fixed.
Why It's Good For The Game

code quality, eventually signal stuff. and signal stuff
This commit is contained in:
spookydonut
2019-09-16 17:49:00 +12:00
committed by oranges
parent 62b3fffe3b
commit 68c8b71ae9
60 changed files with 104 additions and 298 deletions
@@ -130,8 +130,7 @@
stat &= ~NOPOWER
update_icon()
return
..()
update_icon()
. = ..()
/obj/machinery/modular_computer/attackby(var/obj/item/W as obj, mob/user)
if(cpu && !(flags_1 & NODECONSTRUCT_1))