Skip to content

Commit

Permalink
small tweaks to home search logic
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Nov 14, 2023
1 parent b10104f commit abe4f0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,14 @@
if(structure.unslashable && structure.can_block_movement && structure.density)
continue

if(structure.invisibility == 101)
continue

preferred = TRUE
break

for(var/turf/closed/touching_turf in orange(1, potential_home))
if(get_dir(idle_xeno, touching_turf) in diagonals)
if(get_dir(potential_home, touching_turf) in diagonals)
continue

preferred = TRUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ At bare minimum, make sure the relevant checks from parent types gets copied in
return OBJECT_PENALTY

/obj/structure/xeno_ai_act(mob/living/carbon/xenomorph/X)
if(unslashable || indestructible)
if(unslashable || indestructible || (climbable && islurker(X)))
if(!X.action_busy)
do_climb(X)
return
Expand Down

0 comments on commit abe4f0c

Please sign in to comment.