comparison pytouhou/games/eosd.py @ 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
comparison
equal deleted inserted replaced
349:96e30d6268dd 350:b3049fb5c448
167 self.labels['graze'].set_text('%d' % player_state.graze) 167 self.labels['graze'].set_text('%d' % player_state.graze)
168 self.labels['points'].set_text('%d' % player_state.points) 168 self.labels['points'].set_text('%d' % player_state.points)
169 self.labels['player'].set_value(player_state.lives) 169 self.labels['player'].set_value(player_state.lives)
170 self.labels['bombs'].set_value(player_state.bombs) 170 self.labels['bombs'].set_value(player_state.bombs)
171 171
172 if self.game.boss and self.game.boss._enemy.remaining_lives != -1: 172 if self.game.boss:
173 boss = self.game.boss._enemy 173 boss = self.game.boss._enemy
174 174
175 life_gauge = self.boss_items[1] 175 life_gauge = self.boss_items[1]
176 life_gauge.set_value(boss.life) 176 life_gauge.set_value(boss.life)
177 177