Death to earmuff duping (and other fixes/tweaks) (#7216)

* earmuff *scream

* don't limit limb breaking that hard
This commit is contained in:
JohnWildkins
2019-10-27 12:27:38 +01:00
committed by Werner
parent cd8682a3b5
commit 76adc1d93a
8 changed files with 97 additions and 12 deletions
+3 -2
View File
@@ -642,11 +642,12 @@
update_icon()
update_held_icon()
/obj/item/weapon/gun/mob_can_equip(M as mob, slot)
/obj/item/weapon/gun/mob_can_equip(M as mob, slot, disable_warning, ignore_blocked)
//Cannot equip wielded items.
if(is_wieldable)
if(wielded)
to_chat(M, "<span class='warning'>Lower the [initial(name)] first!</span>")
if(!disable_warning) // unfortunately not sure there's a way to get this to only fire once when it's looped
to_chat(M, "<span class='warning'>Lower the [initial(name)] first!</span>")
return 0
return ..()