Closed daleharris541 closed 1 year ago
Wrote two double for loops, for a double dose of that placement.
vg_positions = create_vespene_geyser_points(self)
for offset in range(0, spacing * spacing, spacing):
for axis_y in range(corner_supply_depot.y+(3*vector_y), corner_supply_depot.y + (18 * vector_y), 3 * vector_y):
hpoint = Point2(((corner_supply_depot.x + (-offset * vector_x)), axis_y))
if not (hpoint in vg_positions or invalid_positions(self, hpoint, starting_height)):
tech_buildings_placement_list.append(hpoint)
for offset in range(5, spacing * spacing, spacing):
for axis_y in range(corner_supply_depot.y+(-3*vector_y), corner_supply_depot.y + (-18 * vector_y), -3 * vector_y):
vpoint = Point2(((corner_supply_depot.x + (offset * vector_x)), axis_y))
if not (vpoint in vg_positions or invalid_positions(self, vpoint, starting_height)):
tech_buildings_placement_list.append(vpoint)
https://github.com/daleharris541/jimmy/blob/7f04d26c07a5404af15d1098a91c0b0e96c9268d/templateBot.py#L281