comparison pytouhou/vm/eclrunner.py @ 275:4b0570bf5847

Implement hardcoded function 14 used by spellcard “Lævateinn”.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 05 Feb 2012 23:43:12 +0100
parents f037bca24f2d
children 754ff6452d7e
comparison
equal deleted inserted replaced
274:f037bca24f2d 275:4b0570bf5847
1013 bullets_per_shot, number_of_shots, 1013 bullets_per_shot, number_of_shots,
1014 speed, speed2, 1014 speed, speed2,
1015 self._getval(-10006) + _angle, angle, flags) 1015 self._getval(-10006) + _angle, angle, flags)
1016 self._enemy.fire(launch_pos=launch_pos, 1016 self._enemy.fire(launch_pos=launch_pos,
1017 bullet_attributes=bullet_attributes) 1017 bullet_attributes=bullet_attributes)
1018 elif function == 14: # Laevateinn
1019 if arg == 0:
1020 self.variables[4] = 0
1021 for laser in self._enemy.laser_by_id.values():
1022 self.variables[4] += 1
1023 for pos in laser.get_bullets_pos():
1024 self._enemy.fire(launch_pos=pos)
1025 else:
1026 pass #TODO: check
1018 elif function == 16: # QED: Ripples of 495 years 1027 elif function == 16: # QED: Ripples of 495 years
1019 #TODO: the rythm seems to be really wrong 1028 #TODO: the rythm seems to be really wrong
1020 # Indeed, Flandre is supposed to start slowly, and those values 1029 # Indeed, Flandre is supposed to start slowly, and those values
1021 # match the craziest parts of the spellcard 1030 # match the craziest parts of the spellcard
1022 if arg == 0: 1031 if arg == 0: