Skip to content

Commit

Permalink
bugfix: Xenomorphs can't devour (#5862)
Browse files Browse the repository at this point in the history
* fix

* setDir
  • Loading branch information
LiquidPotroh authored Sep 6, 2024
1 parent ebb2517 commit 2f7a573
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions code/game/atoms_movable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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]!")))
Expand Down
2 changes: 0 additions & 2 deletions code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2f7a573

Please sign in to comment.