comparison pytouhou/vm/eclrunner.py @ 217:577f45454402

Change background during spellcards.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 17 Dec 2011 21:18:39 +0100
parents 709f42eaa55e
children 9bb26dbb8438
comparison
equal deleted inserted replaced
216:a842ddd471fd 217:577f45454402
713 713
714 714
715 @instruction(93) 715 @instruction(93)
716 def set_spellcard(self, unknown, number, name): 716 def set_spellcard(self, unknown, number, name):
717 #TODO: display it on the game. 717 #TODO: display it on the game.
718 #TODO: change the background.
719 #TODO: make the enemies more resistants (and find how). 718 #TODO: make the enemies more resistants (and find how).
720 self._game.change_bullets_into_star_items() 719 self._game.change_bullets_into_star_items()
721 self._game.spellcard = number 720 self._game.spellcard = number
721 self._game.enable_effect()
722 print("%d - %s" % (number+1, name)) 722 print("%d - %s" % (number+1, name))
723 723
724 724
725 @instruction(94) 725 @instruction(94)
726 def end_spellcard(self): 726 def end_spellcard(self):
727 #TODO: return everything back to normal 727 #TODO: return everything back to normal
728 #TODO: give the spellcard bonus. 728 #TODO: give the spellcard bonus.
729 if self._game.spellcard: 729 if self._game.spellcard:
730 self._game.change_bullets_into_star_items() 730 self._game.change_bullets_into_star_items()
731 self._game.spellcard = None 731 self._game.spellcard = None
732 self._game.disable_effect()
732 733
733 734
734 @instruction(95) 735 @instruction(95)
735 def pop_enemy(self, sub, x, y, z, life, bonus_dropped, die_score): 736 def pop_enemy(self, sub, x, y, z, life, bonus_dropped, die_score):
736 self._game.ecl_runner._pop_enemy(sub, 0, self._getval(x), self._getval(y), 0, life, bonus_dropped, die_score) 737 self._game.ecl_runner._pop_enemy(sub, 0, self._getval(x), self._getval(y), 0, life, bonus_dropped, die_score)