mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user