Mercurial > touhou
changeset 350:b3049fb5c448
Fix remaining lives display issue
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 07 Jul 2012 21:32:49 +0200 |
parents | 96e30d6268dd |
children | a628b48a745f |
files | pytouhou/game/enemy.py pytouhou/games/eosd.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pytouhou/game/enemy.py +++ b/pytouhou/game/enemy.py @@ -59,7 +59,7 @@ class Enemy(object): self.low_life_trigger = None self.timeout = -1 self.timeout_callback = -1 - self.remaining_lives = -1 + self.remaining_lives = 0 self.automatic_orientation = False
--- a/pytouhou/games/eosd.py +++ b/pytouhou/games/eosd.py @@ -169,7 +169,7 @@ class EoSDInterface(object): self.labels['player'].set_value(player_state.lives) self.labels['bombs'].set_value(player_state.bombs) - if self.game.boss and self.game.boss._enemy.remaining_lives != -1: + if self.game.boss: boss = self.game.boss._enemy life_gauge = self.boss_items[1]