projects
/
koperkapel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e974eb
)
Slow down attack rate a bit
author
Neil
<neil@dip.sun.ac.za>
Sat, 5 Mar 2016 22:53:03 +0000
(
00:53
+0200)
committer
Neil
<neil@dip.sun.ac.za>
Sat, 5 Mar 2016 22:54:06 +0000
(
00:54
+0200)
koperkapel/gamelib/enemy_roach.py
patch
|
blob
|
history
diff --git
a/koperkapel/gamelib/enemy_roach.py
b/koperkapel/gamelib/enemy_roach.py
index 2201c586f389e51193bc9c6851c9f5ea6b2a116e..83523b6d4fdd5caeb0c7dce1dd47ff91bbc00668 100644
(file)
--- a/
koperkapel/gamelib/enemy_roach.py
+++ b/
koperkapel/gamelib/enemy_roach.py
@@
-27,7
+27,7
@@
def get_enemy_roach(level):
def attack(roach, player_pos, player_layer, dt):
"""Attack the player if close enough"""
roach.last_attacked += dt
- if roach.last_attacked > 0.
3
:
+ if roach.last_attacked > 0.
6
:
roach.last_attacked = 0
if player_layer != 'floor':
return None