# HG changeset patch # User Emmanuel Gil Peyrot # Date 1330677515 -3600 # Node ID c074783d0847285de99dc9c15d0580a123050ae7 # Parent 2a60642e8892e4c7d7ae656fc93b93cc2d7e7010 Implement hardcoded function 8 for Remilia. diff --git a/pytouhou/vm/eclrunner.py b/pytouhou/vm/eclrunner.py --- 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