You can no longer use mech ranged weapons if you have a melee-only martial arts (#17659)

* You can no longer use mech ranged weapons if you have a melee-only martial arts

* Update code/game/mecha/mecha.dm

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>

* Update code/game/mecha/mecha.dm

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
This commit is contained in:
Regen
2022-04-30 15:54:32 +01:00
committed by GitHub
co-authored by Charlie
parent b8b6356150
commit 35fe448b38
+3
View File
@@ -211,6 +211,9 @@
if(HAS_TRAIT(L, TRAIT_PACIFISM) && selected.harmful)
to_chat(L, "<span class='warning'>You don't want to harm other living beings!</span>")
return
if(user.mind?.martial_art?.no_guns)
to_chat(L, "<span class='warning'>[L.mind.martial_art.no_guns_message]</span>")
return
selected.action(target, params)
else if(selected && selected.is_melee())
if(isliving(target) && selected.harmful && HAS_TRAIT(L, TRAIT_PACIFISM))