Convert the geometry types to frozen dataclasses
This commit is contained in:
parent
a072ad507e
commit
8b9897f0cc
2 changed files with 18 additions and 52 deletions
|
@ -90,7 +90,7 @@ class RoomsAndCorridorsGenerator(MapGenerator):
|
|||
self.rng.randint(5, min(15, max(5, node.height - 2))))
|
||||
origin = Point(node.x + self.rng.randint(1, max(1, node.width - size.width - 1)),
|
||||
node.y + self.rng.randint(1, max(1, node.height - size.height - 1)))
|
||||
bounds = Rect(origin.x, origin.y, size.width, size.height)
|
||||
bounds = Rect(origin, size)
|
||||
|
||||
LOG.debug(f'{" " * indent}`-> {bounds}')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue