Moved can_trigger_gun to item/weapon parent

This commit is contained in:
CitadelStationBot
2017-08-14 16:05:43 -05:00
parent 0553cf121f
commit 97243fca3a
8 changed files with 19 additions and 22 deletions
@@ -1,4 +1,5 @@
/obj/item/weapon
var/trigger_guard = TRIGGER_GUARD_NONE
/obj/item/weapon/banhammer
desc = "A banhammer"
@@ -584,3 +585,8 @@
throwforce = 0
flags = DROPDEL | ABSTRACT
attack_verb = list("bopped")
/obj/item/weapon/proc/can_trigger_gun(mob/living/user)
if(!user.can_use_guns(src))
return FALSE
return TRUE