mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-09 14:21:50 +02:00
Fix building foundations.
This commit is contained in:
parent
aada02ee0b
commit
f912fa61b2
2 changed files with 3 additions and 3 deletions
|
@ -189,7 +189,7 @@ class Constructor:
|
|||
self.craters: list[Crater] = []
|
||||
self.direction_sectors: list[DirectionSector] = []
|
||||
|
||||
self.heights: set[float] = {2.0, 4.0}
|
||||
self.heights: set[float] = {1.0, 2.0}
|
||||
|
||||
def add_building(self, building: Building) -> None:
|
||||
"""Add building and update levels."""
|
||||
|
|
|
@ -118,9 +118,9 @@ class Building(Figure):
|
|||
shift_2: np.ndarray = np.array((0.0, -height * scale))
|
||||
for segment in self.parts:
|
||||
fill: Color
|
||||
if height == 2.0:
|
||||
if height <= 1.0:
|
||||
fill = self.wall_bottom_color_1
|
||||
elif height == 4.0:
|
||||
elif height <= 2.0:
|
||||
fill = self.wall_bottom_color_2
|
||||
else:
|
||||
color_part: float = self.wall_color_start + segment.angle * 0.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue