Fix bug on Plum cloning
This commit is contained in:
parent
4370b1531d
commit
4c65f2130d
|
@ -1,5 +1,5 @@
|
||||||
brutalmaze.egg-info
|
brutalmaze.egg-info
|
||||||
build
|
build
|
||||||
dist
|
wiki
|
||||||
__pycache__
|
__pycache__
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
|
@ -110,7 +110,10 @@ class Maze:
|
||||||
continue
|
continue
|
||||||
enemy = new_enemy(self, x, y)
|
enemy = new_enemy(self, x, y)
|
||||||
self.enemies.append(enemy)
|
self.enemies.append(enemy)
|
||||||
if plum is None or not plum.clone(enemy): walls.remove((x, y))
|
if plum is None or not plum.clone(enemy):
|
||||||
|
walls.remove((x, y))
|
||||||
|
else:
|
||||||
|
self.map[x][y] = WALL
|
||||||
|
|
||||||
def get_pos(self, x, y):
|
def get_pos(self, x, y):
|
||||||
"""Return coordinate of the center of the grid (x, y)."""
|
"""Return coordinate of the center of the grid (x, y)."""
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ with open('README.rst') as f:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='brutalmaze',
|
name='brutalmaze',
|
||||||
version='0.2.1',
|
version='0.2.2',
|
||||||
description='A hash and slash game with fast-paced action and a minimalist art style',
|
description='A hash and slash game with fast-paced action and a minimalist art style',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
url='https://github.com/McSinyx/brutalmaze',
|
url='https://github.com/McSinyx/brutalmaze',
|
||||||
|
|
Loading…
Reference in New Issue