comparison eosd @ 337:bc162f60f0a0

Skip dialogs in the boss rush mode, and make boss rush skipping faster
author Thibaut Girka <thib@sitedethib.com>
date Sun, 01 Jul 2012 18:07:33 +0200
parents 4eca6130f118
children 65453340ae95
comparison
equal deleted inserted replaced
336:72ef7e24b373 337:bc162f60f0a0
29 from pytouhou.vm.msgrunner import NextStage 29 from pytouhou.vm.msgrunner import NextStage
30 30
31 31
32 class EoSDGameBossRush(EoSDGame): 32 class EoSDGameBossRush(EoSDGame):
33 def run_iter(self, keystate): 33 def run_iter(self, keystate):
34 for i in range(16): 34 for i in range(20):
35 EoSDGame.run_iter(self, keystate if i == 0 else 0) 35 EoSDGame.run_iter(self, (keystate | 256) if i == 0 else 0)
36 if (self.msg_wait or self.enemies or self.items 36 if (self.enemies or self.items
37 or self.lasers or self.bullets or self.cancelled_bullets): 37 or self.lasers or self.bullets or self.cancelled_bullets):
38 break 38 break
39 39
40 def cleanup(self): 40 def cleanup(self):
41 if not (self.boss or self.msg_wait or self.ecl_runner.boss_wait): 41 if not (self.boss or self.msg_wait or self.ecl_runner.boss_wait):