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

Differentiates pylons in same area when spawning as lesser drone #4985

Merged
merged 2 commits into from
Nov 22, 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
9 changes: 8 additions & 1 deletion code/game/gamemodes/cm_initialize.dm
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,14 @@ Additional game mode variables.

for(var/obj/effect/alien/resin/special/pylon/cycled_pylon as anything in hive.hive_structures[XENO_STRUCTURE_PYLON])
if(cycled_pylon.lesser_drone_spawns >= 1)
selection_list += "[cycled_pylon.name] at [get_area(cycled_pylon)]"
var/pylon_number = 1
var/pylon_name = "[cycled_pylon.name] at [get_area(cycled_pylon)]"
//For renaming the pylon if we have duplicates
var/pylon_selection_name = pylon_name
while(pylon_selection_name in selection_list)
pylon_selection_name = "[pylon_name] ([pylon_number])"
pylon_number ++
selection_list += pylon_selection_name
selection_list_structure += cycled_pylon

if(!length(selection_list))
Expand Down