fix build position
This commit is contained in:
parent
6af8e1a46d
commit
96633a9e98
12
main.py
12
main.py
@ -392,18 +392,6 @@ def build_place(structure, i):
|
|||||||
global building_under_construction, rounds_between_energy, state
|
global building_under_construction, rounds_between_energy, state
|
||||||
if isinstance(available_tiles[i], tuple):
|
if isinstance(available_tiles[i], tuple):
|
||||||
game_layer.place_foundation(available_tiles[i], structure)
|
game_layer.place_foundation(available_tiles[i], structure)
|
||||||
for building in state.available_residence_buildings:
|
|
||||||
if structure in building.building_name:
|
|
||||||
for j in range(len(state.residences)):
|
|
||||||
building = state.residences[j]
|
|
||||||
coords_to_check = (building.X, building.Y)
|
|
||||||
if coords_to_check == available_tiles[i]:
|
|
||||||
available_tiles[i] = building
|
|
||||||
building_under_construction = (building.X, building.Y, j)
|
|
||||||
rounds_between_energy = len(state.residences)+2
|
|
||||||
return True
|
|
||||||
for building in state.available_utility_buildings:
|
|
||||||
if structure in building.building_name:
|
|
||||||
for j in range(len(state.utilities)):
|
for j in range(len(state.utilities)):
|
||||||
building = state.utilities[j]
|
building = state.utilities[j]
|
||||||
coords_to_check = (building.X, building.Y)
|
coords_to_check = (building.X, building.Y)
|
||||||
|
Reference in New Issue
Block a user