Fix typos
This commit is contained in:
parent
6fbc757f1e
commit
c6f66d95f2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue