# HG changeset patch # User Thibaut Girka # Date 1328481792 -3600 # Node ID 4b0570bf5847c59e586a32fec0934eb3bdb8e500 # Parent f037bca24f2db23b2ab9b98477da7a9abe3c7af6 Implement hardcoded function 14 used by spellcard “Lævateinn”. diff --git a/pytouhou/vm/eclrunner.py b/pytouhou/vm/eclrunner.py --- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -1015,6 +1015,15 @@ class ECLRunner(object): self._getval(-10006) + _angle, angle, flags) self._enemy.fire(launch_pos=launch_pos, bullet_attributes=bullet_attributes) + elif function == 14: # Laevateinn + if arg == 0: + self.variables[4] = 0 + for laser in self._enemy.laser_by_id.values(): + self.variables[4] += 1 + for pos in laser.get_bullets_pos(): + self._enemy.fire(launch_pos=pos) + 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