From c6f66d95f2b2f683baef7fd9ce14c744034fc38b Mon Sep 17 00:00:00 2001 From: Charles Peyrat Date: Fri, 8 Jan 2021 04:48:32 +0100 Subject: [PATCH] Fix typos --- squirrelbattle/mapgeneration/broguelike.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/squirrelbattle/mapgeneration/broguelike.py b/squirrelbattle/mapgeneration/broguelike.py index 6101ceb..52ec246 100644 --- a/squirrelbattle/mapgeneration/broguelike.py +++ b/squirrelbattle/mapgeneration/broguelike.py @@ -136,17 +136,17 @@ class Generator: return room, doory, doorx, dy, dx def create_random_room(self): - return create_circular_room(self) + return self.create_circular_room() def run(self): height, width = self.params["height"], self.params["width"] level = [[Tile.EMPTY for i in range(width)] for j in range(height)] # the starting room must have no corridor - mem, self.params["corridor"] = self.params["corridor"], 0 + mem, self.params["corridor_chance"] = self.params["corridor_chance"], 0 starting_room, _, _, _, _ = self.create_random_room() self.place_room(level, height//2, width//2, 0, 0, starting_room) - self.params["corridor"] = mem + self.params["corridor_chance"] = mem # find a starting position sy, sx = randint(0, height-1), randint(0, width-1)