Skip to content

Commit

Permalink
something soemething maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdtalon committed Nov 20, 2023
1 parent 5ba73a9 commit 7e9a8de
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions code/game/gamemodes/cm_initialize.dm
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +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)
var/pylon_number = 1
var/pylon_name = "[cycled_pylon.name] at [get_area(cycled_pylon)]"
if(!(pylon_name in selection_list))
selection_list += pylon_name
else
selection_list += pylon_name + " (1)"
//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

0 comments on commit 7e9a8de

Please sign in to comment.