Mercurial > touhou
changeset 302:34ea45d95489
Fix ECL instruction 119.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 10 Mar 2012 20:31:49 +0100 |
parents | 6f1ca1cb5238 |
children | 647bde10353d |
files | pytouhou/vm/eclrunner.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -973,17 +973,17 @@ class ECLRunner(object): if self._enemy.select_player().state.power < 128: if number > 0: #TODO: find the real formula in the binary. - self._game.drop_bonus(self._enemy.x - 64 + self._game.prng.rand_uint16() % 128, - self._enemy.y - 64 + self._game.prng.rand_uint16() % 128, + self._game.drop_bonus(self._enemy.x - 64 + self._game.prng.rand_double() * 128, + self._enemy.y - 64 + self._game.prng.rand_double() * 128, 2) for i in xrange(number - 1): - self._game.drop_bonus(self._enemy.x - 64 + self._game.prng.rand_uint16() % 128, - self._enemy.y - 64 + self._game.prng.rand_uint16() % 128, + self._game.drop_bonus(self._enemy.x - 64 + self._game.prng.rand_double() * 128, + self._enemy.y - 64 + self._game.prng.rand_double() * 128, 0) else: for i in xrange(number): - self._game.drop_bonus(self._enemy.x - 64 + self._game.prng.rand_uint16() % 128, - self._enemy.y - 64 + self._game.prng.rand_uint16() % 128, + self._game.drop_bonus(self._enemy.x - 64 + self._game.prng.rand_double() * 128, + self._enemy.y - 64 + self._game.prng.rand_double() * 128, 1)