Skip to content

Commit

Permalink
Fixed Cerulean Pylon's polycrystal spawning logic (#11276)
Browse files Browse the repository at this point in the history
* replaced a possibly infinite loop for a finite one

* added a comment explaining best effort attempt
  • Loading branch information
aramix273 authored Aug 1, 2024
1 parent 35cb150 commit bada990
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ GLOBAL_LIST_EMPTY(bluespace_slime_crystals)

/obj/structure/slime_crystal/cerulean/Initialize(mapload)
. = ..()
while(crystals < 3)
for (var/i in 1 to 10) // doesn't guarantee 3 but it's a good effort
spawn_crystal()

/obj/structure/slime_crystal/cerulean/proc/spawn_crystal()
Expand Down

0 comments on commit bada990

Please sign in to comment.