projects
/
koperkapel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c169147
)
Correctly reset creation time
author
Neil
<neil@dip.sun.ac.za>
Sat, 5 Mar 2016 20:54:41 +0000
(22:54 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Sat, 5 Mar 2016 21:18:39 +0000
(23:18 +0200)
koperkapel/gamelib/enemy_generator.py
patch
|
blob
|
history
diff --git
a/koperkapel/gamelib/enemy_generator.py
b/koperkapel/gamelib/enemy_generator.py
index 1329660b1881140768f557e2912c5e0305a018ee..e8d01082f3aebaf5d35dc0519f05249650016faf 100644
(file)
--- a/
koperkapel/gamelib/enemy_generator.py
+++ b/
koperkapel/gamelib/enemy_generator.py
@@
-28,6
+28,7
@@
class EnemyGenerator(Actor):
if self._time_since_last_update > self.rate:
if len(self._made_enemies) < self.max_enemies:
self._make_enemy()
+ self._time_since_last_update = 0
def _make_enemy(self):
if self.enemy_type == 'roach':