Fix typos
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user