fix weight assignment
This commit is contained in:
parent
d2106e8ea7
commit
f225f42ba9
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user