Destroyed canisters no longer produce light or process. (#9742)

This commit is contained in:
mikomyazaki
2020-08-21 19:26:26 +01:00
committed by GitHub
parent 21a225967d
commit e71b30a54a
2 changed files with 43 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ update_flag
if (src.destroyed)
cut_overlays()
set_light(FALSE)
src.icon_state = text("[]-1", src.canister_color)
return
@@ -201,7 +202,7 @@ update_flag
/obj/machinery/portable_atmospherics/canister/machinery_process()
if (destroyed)
return
return PROCESS_KILL
..()