comparison pytouhou/vm/eclrunner.py @ 296:c074783d0847

Implement hardcoded function 8 for Remilia.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 02 Mar 2012 09:38:35 +0100
parents 2a60642e8892
children e04e402e6380
comparison
equal deleted inserted replaced
295:2a60642e8892 296:c074783d0847
1019 [2, 3, 4], 1019 [2, 3, 4],
1020 [1, 4, 0], 1020 [1, 4, 0],
1021 [4, 2, 3]] 1021 [4, 2, 3]]
1022 character = self._enemy.select_player().state.character 1022 character = self._enemy.select_player().state.character
1023 self.variables[1:4] = values[character] 1023 self.variables[1:4] = values[character]
1024 elif function == 8: # Remilia’s magic
1025 bullet_attributes = [70, 1, 1, 1, 1, 0., 0., 0., 0.7, 0]
1026 n = 0
1027 for bullet in self._game.bullets:
1028 if bullet._bullet_type.anim_index < 5:
1029 continue
1030 n += 1
1031 bullet_attributes[8] = bullet.angle
1032 self._enemy.fire(launch_pos=(bullet.x, bullet.y),
1033 bullet_attributes=bullet_attributes)
1034 self._setval(-10004, n)
1024 elif function == 13: 1035 elif function == 13:
1025 if self._enemy.bullet_attributes is None: 1036 if self._enemy.bullet_attributes is None:
1026 return 1037 return
1027 1038
1028 frame = self._getval(-10004) 1039 frame = self._getval(-10004)