Merge pull request #9344 from Ghommie/Ghommie-cit208
Makes abandoned crates less prone to explosions.
This commit is contained in:
@@ -169,6 +169,7 @@
|
||||
locked = FALSE
|
||||
cut_overlays()
|
||||
add_overlay("securecrateg")
|
||||
tamperproof = 0 // set explosion chance to zero, so we dont accidently hit it with a multitool and instantly die
|
||||
else if (input == null || sanitycheck == null || length(input) != codelen)
|
||||
to_chat(user, "<span class='notice'>You leave the crate alone.</span>")
|
||||
else
|
||||
@@ -213,6 +214,12 @@
|
||||
return
|
||||
return ..()
|
||||
|
||||
/obj/structure/closet/secure/loot/dive_into(mob/living/user)
|
||||
if(!locked)
|
||||
return ..()
|
||||
to_chat(user, "<span class='notice'>That seems like a stupid idea.</span>")
|
||||
return FALSE
|
||||
|
||||
/obj/structure/closet/crate/secure/loot/emag_act(mob/user)
|
||||
. = SEND_SIGNAL(src, COMSIG_ATOM_EMAG_ACT)
|
||||
if(!locked)
|
||||
@@ -227,4 +234,6 @@
|
||||
..()
|
||||
|
||||
/obj/structure/closet/crate/secure/loot/deconstruct(disassembled = TRUE)
|
||||
if(!locked && disassembled)
|
||||
return ..()
|
||||
boom()
|
||||
|
||||
Reference in New Issue
Block a user