Makes abandoned crates destroy contents when tamper is detected

This commit is contained in:
Heroman
2022-07-17 09:36:35 +10:00
parent 80ac2e2674
commit 8804e5d746
+7
View File
@@ -215,3 +215,10 @@
to_chat(user, "<span class='notice'>Last code attempt, [previousattempt], had [bulls] correct digits at correct positions and [cows] correct digits at incorrect positions.</span>")
return
..()
/obj/structure/closet/crate/secure/loot/damage(var/damage)
if(contents.len)
visible_message("<font color='red'><b>[src] makes a grinding noise as its contents are destroyed by the deca-lock safety!</b></font>")
for(var/obj/O in src.contents)
qdel(O)
..()