Mercurial > touhou
diff pytouhou/vm/eclrunner.py @ 168:b96d835c0807
Implement Cirno’s 雪符「ダイアモンドブリザード」 spellcard.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 18 Oct 2011 14:03:18 -0700 |
parents | dcf32488a2c9 |
children | c4b4f7c068f2 |
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -856,6 +856,11 @@ class ECLRunner(object): bullet.speed = 2.0 #TODO bullet.angle = self._game.prng.rand_double() * pi #TODO bullet.delta = (cos(bullet.angle) * bullet.speed, sin(bullet.angle) * bullet.speed) + elif function == 1: # Cirno + self._enemy.bullet_launch_offset = ( + self._game.prng.rand_uint16() % arg - arg / 2, + self._game.prng.rand_uint16() % arg - arg / 2) + self._enemy.fire() else: logger.warn("Unimplemented special function %d!", function)