Mercurial > touhou
comparison eosd @ 352:cca5843c2e95
Clean up effects left behind by lasers in boss rush mode
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 07 Jul 2012 21:47:51 +0200 |
parents | eab591728abf |
children | cb1460b9b6cf |
comparison
equal
deleted
inserted
replaced
351:a628b48a745f | 352:cca5843c2e95 |
---|---|
50 def cleanup(self): | 50 def cleanup(self): |
51 if not (self.boss or self.msg_wait or self.ecl_runner.boss_wait): | 51 if not (self.boss or self.msg_wait or self.ecl_runner.boss_wait): |
52 self.enemies = [enemy for enemy in self.enemies | 52 self.enemies = [enemy for enemy in self.enemies |
53 if enemy.boss_callback != -1 or enemy.frame > 1] | 53 if enemy.boss_callback != -1 or enemy.frame > 1] |
54 self.lasers = [laser for laser in self.lasers if laser.frame > 1] | 54 self.lasers = [laser for laser in self.lasers if laser.frame > 1] |
55 self.effects = [effect for effect in self.effects | |
56 if not hasattr(effect, '_laser') | |
57 or effect._laser in self.lasers] | |
55 self.bullets = [bullet for bullet in self.bullets if bullet.frame > 1] | 58 self.bullets = [bullet for bullet in self.bullets if bullet.frame > 1] |
56 EoSDGame.cleanup(self) | 59 EoSDGame.cleanup(self) |
57 | 60 |
58 | 61 |
59 | 62 |