Convert the geometry types to frozen dataclasses

This commit is contained in:
Eryn Wells 2022-05-01 17:32:48 -07:00
parent a072ad507e
commit 8b9897f0cc
2 changed files with 18 additions and 52 deletions

View file

@ -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}')