Skip to content

Commit

Permalink
Make secure crate less prone to explosions when poked (tgstation#39680)
Browse files Browse the repository at this point in the history
This seems unintended. Also fixes damage after deletion runtime.
  • Loading branch information
AnturK authored and SpaceManiac committed Aug 14, 2018
1 parent 8dfc943 commit b575ec2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/game/objects/structures/crates_lockers/crates/secure.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
add_overlay("securecrateg")

/obj/structure/closet/crate/secure/take_damage(damage_amount, damage_type = BRUTE, damage_flag = 0, sound_effect = 1)
if(prob(tamperproof))
if(prob(tamperproof) && damage_amount >= DAMAGE_PRECISION)
boom()
..()
else
..()


/obj/structure/closet/crate/secure/proc/boom(mob/user)
Expand Down

0 comments on commit b575ec2

Please sign in to comment.