fix weight assignment

This commit is contained in:
matixezor 2021-04-26 13:51:25 +02:00
parent d2106e8ea7
commit f225f42ba9

View File

@ -12,7 +12,7 @@ class TilesFactory:
module = import_module(f'{img.mine_type.lower()}_mine')
return Tile(number, 1, getattr(module, f'{img.mine_type}Mine')())
else:
return Tile(number, 1, None) if img.name.find('grass') else Tile(number, 3, None)
return Tile(number, 1, None) if 'grass' in img.name else Tile(number, 20, None)
def get_tiles_list(self) -> List[Tile]:
return [self.create_tile(i) for i in range(13)]