Mercurial > touhou
changeset 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 | a09ac4650e0d |
files | pytouhou/vm/eclrunner.py |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -1021,6 +1021,17 @@ class ECLRunner(object): [4, 2, 3]] character = self._enemy.select_player().state.character self.variables[1:4] = values[character] + elif function == 8: # Remilia’s magic + bullet_attributes = [70, 1, 1, 1, 1, 0., 0., 0., 0.7, 0] + n = 0 + for bullet in self._game.bullets: + if bullet._bullet_type.anim_index < 5: + continue + n += 1 + bullet_attributes[8] = bullet.angle + self._enemy.fire(launch_pos=(bullet.x, bullet.y), + bullet_attributes=bullet_attributes) + self._setval(-10004, n) elif function == 13: if self._enemy.bullet_attributes is None: return