diff options
author | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2017-12-09 21:38:22 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2017-12-09 21:38:22 +0700 |
commit | 4c65f2130d6f1c4e3450b988e0f1bed0e086062f (patch) | |
tree | 7f9144814e5f9d363d7bfeef86c7990470d9b550 | |
parent | 4370b1531d7bd5f84340254014e4d9479609239d (diff) | |
download | brutalmaze-4c65f2130d6f1c4e3450b988e0f1bed0e086062f.tar.gz |
Fix bug on Plum cloning 0.2.2
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | brutalmaze/maze.py | 5 | ||||
-rwxr-xr-x | setup.py | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore index b537ddb..5d3d906 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ brutalmaze.egg-info build -dist +wiki __pycache__ *.pyc diff --git a/brutalmaze/maze.py b/brutalmaze/maze.py index db7672c..5788777 100644 --- a/brutalmaze/maze.py +++ b/brutalmaze/maze.py @@ -110,7 +110,10 @@ class Maze: continue enemy = new_enemy(self, x, y) 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): """Return coordinate of the center of the grid (x, y).""" diff --git a/setup.py b/setup.py index 1eea8e4..364a7c0 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open('README.rst') as f: setup( 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', long_description=long_description, url='https://github.com/McSinyx/brutalmaze', |