projects
/
koperkapel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Melee weapons now do damage.
[koperkapel.git]
/
koperkapel
/
gamelib
/
level.py
diff --git
a/koperkapel/gamelib/level.py
b/koperkapel/gamelib/level.py
index 23701b947c387797c7e1288e88ce367e739c8735..aed4cccb880b88b48cd33ba33e6afe0abcba9663 100644
(file)
--- a/
koperkapel/gamelib/level.py
+++ b/
koperkapel/gamelib/level.py
@@
-99,6
+99,9
@@
class Level(object):
return enemy
return None
return enemy
return None
+ def remove_enemy(self, enemy):
+ self.enemies.remove(enemy)
+
def add_enemy(self, enemy, x, y):
"""Add an enemy to an empty floor space near x, y"""
added = False
def add_enemy(self, enemy, x, y):
"""Add an enemy to an empty floor space near x, y"""
added = False
@@
-112,4
+115,3
@@
class Level(object):
added = True
x += random.randint(-1, 1)
y += random.randint(-1, 1)
added = True
x += random.randint(-1, 1)
y += random.randint(-1, 1)
-