changeset 360:d55a1843b2a7

Fix Flandre's QED: Ripples of 495 years
author Thibaut Girka <thib@sitedethib.com>
date Mon, 09 Jul 2012 21:10:38 +0200
parents 130d258217f3
children b55939b4b40d
files pytouhou/vm/eclrunner.py
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py
+++ b/pytouhou/vm/eclrunner.py
@@ -1059,14 +1059,11 @@ class ECLRunner(object):
             else:
                 pass #TODO: check
         elif function == 16: # QED: Ripples of 495 years
-            #TODO: the rythm seems to be really wrong
-            # Indeed, Flandre is supposed to start slowly, and those values
-            # match the craziest parts of the spellcard
             if arg == 0:
-                self.variables[9] = 40 #TODO: is that all?
-                self.variables[7] = 2. #TODO: check value. is that all?
+                self.variables[9] = 40 + self._enemy.life // 25
+                self.variables[7] = 2. - self._enemy.life / 6000.
             else:
-                #TODO: check
+                #TODO: I'm really not sure about that...
                 self.variables[6] = self._game.prng.rand_double() * (self._game.width - 64.) + 32.
                 self.variables[7] = self._game.prng.rand_double() * (self._game.width / 2. - 64.) + 32.
         else: