Merge pull request #13348 from Heroman3003/abandoned-safe

Makes abandoned crates destroy contents when tamper is detected
This commit is contained in:
Casey
2022-07-17 05:31:53 -04:00
committed by CHOMPStation2
parent 494be6adef
commit 65c56f646d

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)
..()