# HG changeset patch # User Emmanuel Gil Peyrot # Date 1337257140 -7200 # Node ID 9a4119e2cc742f0e6d2101ceaf18b94ba3aa05a1 # Parent 1366cefd03340477e221cad6c6912a4c2675a2b5 Use Enemy.die_score. diff --git a/pytouhou/game/enemy.py b/pytouhou/game/enemy.py --- a/pytouhou/game/enemy.py +++ b/pytouhou/game/enemy.py @@ -35,7 +35,7 @@ class Enemy(object): self.visible = True self.was_visible = False self.bonus_dropped = bonus_dropped - self.die_score = die_score #TODO: use it + self.die_score = die_score self.frame = 0 @@ -347,6 +347,9 @@ class Enemy(object): self.die_anim() + #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. + if death_flags < 4: if self.bonus_dropped > -1: self.drop_particles(7, 0)