Mercurial > touhou
comparison pytouhou/game/enemy.py @ 357:26f78fc7acea
Fix Koakuma
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 08 Jul 2012 01:20:47 +0200 |
parents | 89ee09453906 |
children | 488c094ed51d |
comparison
equal
deleted
inserted
replaced
356:a5595de3fe7e | 357:26f78fc7acea |
---|---|
394 if death_flags == 0: | 394 if death_flags == 0: |
395 self.removed = True | 395 self.removed = True |
396 return | 396 return |
397 | 397 |
398 if death_flags == 1: | 398 if death_flags == 1: |
399 self.boss = False #TODO: really? | 399 if self.boss: |
400 self._game.boss = None | 400 self.boss = False #TODO: really? |
401 self._game.boss = None | |
401 self.touchable = False | 402 self.touchable = False |
402 elif death_flags == 2: | 403 elif death_flags == 2: |
403 pass # Just that? | 404 pass # Just that? |
404 elif death_flags == 3: | 405 elif death_flags == 3: |
405 self.boss = False #TODO: really? | 406 if self.boss: |
406 self._game.boss = None | 407 self.boss = False #TODO: really? |
408 self._game.boss = None | |
407 self.damageable = False | 409 self.damageable = False |
408 self.life = 1 | 410 self.life = 1 |
409 self.death_flags = 0 | 411 self.death_flags = 0 |
410 | 412 |
411 if death_flags != 0 and self.death_callback > -1: | 413 if death_flags != 0 and self.death_callback > -1: |