Adjust sunflower placement logic for larger power thresholds and simplify harvesting.
This commit is contained in:
6
main.py
6
main.py
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user