[MIRROR] Makes canister leaking and blowing up use a component and element respectively (#5958)

* Makes canister leaking and blowing up use a component and element respectively (#59075)

I want to use this behavior on some other things so into a component and element it goes. Gas leaking is handled by a component so it can process whereas the object breaking and causing an explosion is handled by an element. Some minor changes were made so canisters were more consistent in leaking.

* Makes canister leaking and blowing up use a component and element respectively

Co-authored-by: Emmett Gaines <ninjanomnom@gmail.com>
This commit is contained in:
SkyratBot
2021-05-26 01:00:43 +01:00
committed by GitHub
co-authored by Emmett Gaines
parent 88a38e3b44
commit 54f74233aa
17 changed files with 157 additions and 34 deletions
+1
View File
@@ -99,6 +99,7 @@
update_appearance()
/obj/structure/fireaxecabinet/obj_break(damage_flag)
. = ..()
if(!broken && !(flags_1 & NODECONSTRUCT_1))
update_appearance()
broken = TRUE