diff eosd @ 340:39bc59953dfa

Increase player's power stats during skipped frames in boss rush mode.
author Thibaut Girka <thib@sitedethib.com>
date Wed, 04 Jul 2012 22:52:02 +0200
parents 7a05edbab88a
children 61caded6b4f5
line wrap: on
line diff
--- a/eosd
+++ b/eosd
@@ -35,6 +35,10 @@ class EoSDGameBossRush(EoSDGame):
     def run_iter(self, keystate):
         for i in range(20):
             EoSDGame.run_iter(self, (keystate | 256) if i == 0 else 0)
+            if not self.enemies and self.frame % 90 == 0:
+                for player in self.players:
+                    if player.state.power < 128:
+                        player.state.power += 1
             if (self.enemies or self.items
                 or self.lasers or self.bullets or self.cancelled_bullets):
                 break