Merge pull request #6343 from Citadel-Station-13/upstream-merge-36670

[MIRROR] Whether or not a pacifist can fire a gun is no longer based on the gun being harmful, but the chambered round being harmful
This commit is contained in:
deathride58
2018-04-11 21:37:24 +00:00
committed by GitHub
14 changed files with 23 additions and 26 deletions
-8
View File
@@ -879,14 +879,6 @@
if(G.trigger_guard != TRIGGER_GUARD_ALLOW_ALL && !IsAdvancedToolUser())
to_chat(src, "<span class='warning'>You don't have the dexterity to do this!</span>")
return FALSE
var/obj/item/gun/shooty
if(istype(G, /obj/item/gun))
shooty = G
if(has_trait(TRAIT_PACIFISM))
if(shooty && !shooty.harmful)
return TRUE
to_chat(src, "<span class='notice'>You don't want to risk harming anyone!</span>")
return FALSE
return TRUE