From: Neil Date: Sat, 5 Mar 2016 22:53:03 +0000 (+0200) Subject: Slow down attack rate a bit X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=0eb0fc25a930a514b677e71fab1dd3d2412e2e58;p=koperkapel.git Slow down attack rate a bit --- diff --git a/koperkapel/gamelib/enemy_roach.py b/koperkapel/gamelib/enemy_roach.py index 2201c58..83523b6 100644 --- 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