From 2f7a5737348c540b9e12a9447079f9684b1c3892 Mon Sep 17 00:00:00 2001 From: LiquidPotroh <100733800+LiquidPotroh@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:46:52 +0300 Subject: [PATCH] bugfix: Xenomorphs can't devour (#5862) * fix * setDir --- code/game/atoms_movable.dm | 1 + code/modules/mob/living/carbon/alien/humanoid/humanoid.dm | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm index 538adf53084..d290628326d 100644 --- a/code/game/atoms_movable.dm +++ b/code/game/atoms_movable.dm @@ -1379,6 +1379,7 @@ var/target = isturf(loc) ? src : gourmet + gourmet.setDir(get_dir(gourmet, src)) gourmet.visible_message(span_danger("[gourmet.name] пыта[pluralize_ru(gourmet.gender,"ет","ют")]ся поглотить [name]!")) if(!do_after(gourmet, get_devour_time(gourmet), target, NONE, extra_checks = CALLBACK(src, PROC_REF(can_devour), gourmet), max_interact_count = 1, cancel_on_max = TRUE, cancel_message = span_notice("Вы прекращаете поглощать [name]!"))) diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm index abbd051f1bd..1026d476882 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm @@ -147,7 +147,5 @@ GLOBAL_LIST_INIT(strippable_alien_humanoid_items, create_strippable_list(list( return FALSE if(incapacitated() || grab_state < GRAB_AGGRESSIVE || stat != CONSCIOUS) return FALSE - if(get_dir(src, target) != dir) // Gotta face em 4head - return FALSE return TRUE