EMP Fixes

This commit is contained in:
Fox-McCloud
2015-12-23 04:09:47 -05:00
parent a68078c174
commit 09dab6bdea
6 changed files with 12 additions and 28 deletions
@@ -88,22 +88,6 @@
return screen
*/
/obj/machinery/light_switch/power_change()
if(powered(LIGHT))
stat &= ~NOPOWER
else
stat |= NOPOWER
updateicon()
/obj/machinery/light_switch/emp_act(severity)
if(stat & (BROKEN|NOPOWER))
..(severity)
return
power_change()
..(severity)
/obj/machinery/media/transmitter/broadcast/update_icon()
overlays = 0
if(stat & (NOPOWER|BROKEN))
@@ -142,7 +142,7 @@
emp_act(severity)
..()
reliability -= round(15/severity)
reliability = max(reliability - round(15/severity), 0) //Do not allow it to go negative!
update_icon()