Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Balance] Hive weeds now look for a supporting structure #4385

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions code/modules/cm_aliens/weeds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,16 @@
// 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()
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 || weed_strength > WEED_LEVEL_STANDARD)
if(!parent)
qdel(src)

/obj/effect/alien/weeds/proc/weed_expand()
Expand Down