Skip to content

Commit

Permalink
Update code/modules/cm_aliens/weeds.dm
Browse files Browse the repository at this point in the history
Co-authored-by: harryob <[email protected]>
  • Loading branch information
TeDGamer and harryob committed Sep 11, 2023
1 parent d899e68 commit ca3ba1f
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions code/modules/cm_aliens/weeds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,13 @@
// If you're still confused, scroll aaaall the way down to the bottom of the file.
// that's /obj/effect/alien/weeds/node/Destroy().
/obj/effect/alien/weeds/proc/avoid_orphanage()
if (weed_strength >= WEED_LEVEL_HIVE)
for(var/obj/effect/alien/weeds/node/pylon/N in orange(node_range, get_turf(src)))
// A pylon, cluster or core was nearby to support the hive weed
N.add_child(src)
break
else
for(var/obj/effect/alien/weeds/node/N in orange(node_range, get_turf(src)))
// WE FOUND A NEW MOMMY
N.add_child(src)
break
var/parent_type = /obj/effect/alien/weeds/node
if(weed_strength >= WEED_LEVEL_HIVE)
parent_type = /obj/effect/alien/weeds/node/pylon

var/obj/effect/alien/weeds/node/found = locate(parent_type) in orange(node_range, get_turf(src))
if(found)
found.add_child(src)

// NO MORE FOOD ON THE TABLE. WE DIE
if(!parent)
Expand Down

0 comments on commit ca3ba1f

Please sign in to comment.