[MIRROR] Fixed walking into grilles to destroy them [MDB IGNORE] (#23538)

* Fixed walking into grilles to destroy them (#78086)

* Fixed walking into grilles to destroy them

---------

Co-authored-by: carlarctg <53100513+carlarctg@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-09-05 23:01:12 +02:00
committed by GitHub
parent 0a712f7403
commit 7f1f92062b
+3 -2
View File
@@ -133,8 +133,6 @@
return
var/mob/M = AM
shock(M, 70)
if(prob(50))
take_damage(1, BURN, FIRE, sound_effect = FALSE)
/obj/structure/grille/attack_animal(mob/user, list/modifiers)
. = ..()
@@ -321,6 +319,9 @@
var/turf/T = get_turf(src)
if(T.overfloor_placed)//cant be a floor in the way!
return FALSE
// Shocking hurts the grille (to weaken monkey powersinks)
if(prob(50))
take_damage(1, BURN, FIRE, sound_effect = FALSE)
var/obj/structure/cable/C = T.get_cable_node()
if(C)
if(electrocute_mob(user, C, src, 1, TRUE))