Mercurial > touhou
comparison pytouhou/game/game.pyx @ 545:bcff39c920ab
Set boss mode directly from the enemy.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 15 May 2014 20:14:54 +0200 |
parents | 577c3a88fb67 |
children | e35bef07290d |
comparison
equal
deleted
inserted
replaced
544:b895ed2de71f | 545:bcff39c920ab |
---|---|
577 for key, text in self.texts.items(): | 577 for key, text in self.texts.items(): |
578 if text.removed: | 578 if text.removed: |
579 del self.texts[key] | 579 del self.texts[key] |
580 | 580 |
581 # Disable boss mode if it is dead/it has timeout | 581 # Disable boss mode if it is dead/it has timeout |
582 if self.boss and self.boss._enemy.removed: | 582 if self.boss and self.boss.removed: |
583 self.boss = None | 583 self.boss = None |
584 | 584 |
585 | 585 |
586 cdef list filter_removed(list elements): | 586 cdef list filter_removed(list elements): |
587 cdef Element element | 587 cdef Element element |