mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #13348 from Heroman3003/abandoned-safe
Makes abandoned crates destroy contents when tamper is detected
This commit is contained in:
@@ -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)
|
||||
..()
|
||||
Reference in New Issue
Block a user