Skip to content

Commit

Permalink
Morphs can no longer perform stomach functions inside of pipes (#10141)
Browse files Browse the repository at this point in the history
* Morphs can no longer expel victims inside of pipes

* Update code/modules/antagonists/morph/morph_stomach.dm

Co-authored-by: JixS4v <[email protected]>

---------

Co-authored-by: JixS4v <[email protected]>
  • Loading branch information
Rukofamicom and JixS4v authored Nov 6, 2023
1 parent fe4aa66 commit 8625c0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/antagonists/morph/morph_stomach.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
/datum/morph_stomach/ui_act(action, params)
if(..())
return
if(morph.movement_type & VENTCRAWLING)
to_chat(morph, "<span class='danger'>It's too cramped, you can't do that here!.</span></span>")
return
var/ref = params["id"]
var/atom/movable/target = locate(ref) in morph.contents
if(!target || (!isliving(target) && !isitem(target)))
Expand Down

0 comments on commit 8625c0f

Please sign in to comment.