Adjust sunflower placement logic for larger power thresholds and simplify harvesting.

This commit is contained in:
2026-01-23 21:25:17 -05:00
parent 4e774109ef
commit 83b0032c23

View File

@@ -91,11 +91,11 @@ if __name__ == "__main__":
# only run this if our total power is below 5k. # only run this if our total power is below 5k.
# why? because the rest doesn't use over 5k power. # why? because the rest doesn't use over 5k power.
while num_items(Items.Power) < 5000: while num_items(Items.Power) < 50000:
utils.move_to(0, 0) utils.move_to(0, 0)
grid = sunflowers.place(sectionSize, sectionSize) grid = sunflowers.place(worldSize, worldSize)
utils.move_to(0, 0) utils.move_to(0, 0)
sunflowers.harvest_grid(sectionSize, sectionSize, grid) sunflowers.harvest_grid(grid)
utils.move_to(0, 0) utils.move_to(0, 0)
cactus.place(sectionSize, sectionSize) cactus.place(sectionSize, sectionSize)