Simple mobs no longer one-shot structures (#16709)

This commit is contained in:
Doxxmedearly
2023-07-13 04:23:32 +00:00
committed by GitHub
parent 7d187419b9
commit d8809e3cba
8 changed files with 26 additions and 8 deletions
+7
View File
@@ -52,6 +52,13 @@
visible_message(SPAN_WARNING("\The [src] breaks down!"), intent_message = THUNK_SOUND)
return break_to_parts() // if we break and form shards, return them to the caller to do !FUN! things with
/obj/structure/table/attack_generic(var/mob/user, var/damage, var/attack_message = "attacks", var/wallbreaker)
if(!damage || !wallbreaker)
return
user.do_attack_animation(src)
visible_message(SPAN_DANGER("[user] [attack_message] \the [src]!"))
take_damage(damage)
return TRUE
/obj/structure/table/ex_act(severity)
switch(severity)