Mercurial > touhou
diff pytouhou/game/enemy.py @ 320:1a4ffdda8735
Cancel the bullets when a boss is killed and transfer them to the score.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 23 May 2012 19:33:17 +0200 |
parents | 9a4119e2cc74 |
children | 56523a16db1d |
line wrap: on
line diff
--- a/pytouhou/game/enemy.py +++ b/pytouhou/game/enemy.py @@ -350,6 +350,10 @@ class Enemy(object): #TODO: verify if the score is added with all the different flags. self._game.players[0].state.score += self.die_score #TODO: better distribution amongst the players. + #TODO: verify if that should really be there. + if self.boss: + self._game.change_bullets_into_bonus() + if death_flags < 4: if self.bonus_dropped > -1: self.drop_particles(7, 0)