mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-04 22:42:37 +00:00
Weak mobs (Below 10 damage output) cannot smash destroyable structures like Closets.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
/obj/structure/Destroy()
|
||||
if(parts)
|
||||
new parts(loc)
|
||||
. = ..()
|
||||
. = ..()
|
||||
|
||||
/obj/structure/attack_hand(mob/user)
|
||||
if(breakable)
|
||||
@@ -177,7 +177,7 @@
|
||||
return 1
|
||||
|
||||
/obj/structure/attack_generic(var/mob/user, var/damage, var/attack_verb, var/wallbreaker)
|
||||
if(!breakable || !damage || !wallbreaker)
|
||||
if(!breakable || !damage || damage < 10 || !wallbreaker)
|
||||
return 0
|
||||
visible_message("<span class='danger'>[user] [attack_verb] the [src] apart!</span>")
|
||||
user.do_attack_animation(src)
|
||||
|
||||
@@ -345,7 +345,7 @@
|
||||
icon_state = icon_opened
|
||||
|
||||
/obj/structure/closet/attack_generic(var/mob/user, var/damage, var/attack_message = "destroys", var/wallbreaker)
|
||||
if(!damage || !wallbreaker)
|
||||
if(!damage || damage < 10 || !wallbreaker)
|
||||
return
|
||||
user.do_attack_animation(src)
|
||||
visible_message("<span class='danger'>[user] [attack_message] the [src]!</span>")
|
||||
|
||||
Reference in New Issue
Block a user