Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Oct 12, 2023
1 parent 648733e commit 1eef036
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/modules/mob/living/carbon/xenomorph/ai/movement/drone.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@
if(potential_home.weeds)
continue

if(/obj/effect/alien/weeds/node in range(3, potential_home))
if(!potential_home.is_weedable())
continue

if(locate(/obj/effect/alien/weeds/node) in range(3, potential_home))
continue

if(potential_home.density)
continue

if(shortest_distance && get_dist(X, potential_home) < shortest_distance)
if(shortest_distance && get_dist(X, potential_home) > shortest_distance)
continue

shortest_distance = get_dist(X, potential_home) < shortest_distance
shortest_distance = get_dist(X, potential_home)
home_turf = potential_home

if(!home_turf)
Expand Down

0 comments on commit 1eef036

Please sign in to comment.