Makes the antitamper mechanism prevent tampering 2: electric boomaloo (#20893)

* Sanitises input on abandoned crates

* Makes anti-tamper mechanisms detect tampering.

* Makes explosion trigger on take_damage() instead.
This commit is contained in:
Screemonster
2016-10-21 03:30:46 +01:00
committed by oranges
parent a2f86e6182
commit 60180cb0fd
2 changed files with 16 additions and 8 deletions
+1 -8
View File
@@ -9,6 +9,7 @@
var/lastattempt = null
var/attempts = 10
var/codelen = 4
tamperproof = 90
/obj/structure/closet/crate/secure/loot/New()
..()
@@ -224,11 +225,3 @@
/obj/structure/closet/crate/secure/loot/deconstruct(disassembled = TRUE)
boom()
/obj/structure/closet/crate/secure/loot/proc/boom(mob/user)
if(user)
user << "<span class='danger'>The crate's anti-tamper system activates!</span>"
for(var/atom/movable/AM in src)
qdel(AM)
explosion(get_turf(src), 0, 1, 5, 5)
qdel(src)