Mercurial > touhou
comparison pytouhou/vm/eclrunner.py @ 190:dbe6b7b2d3fc
Fix a few things about particles.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 27 Oct 2011 15:09:42 -0700 |
parents | 68e6d3faeee6 |
children | 5e84dfd153ab |
comparison
equal
deleted
inserted
replaced
189:ba3297ab3bde | 190:dbe6b7b2d3fc |
---|---|
127 | 127 |
128 enm.die_anim() | 128 enm.die_anim() |
129 | 129 |
130 if death_flags < 4: | 130 if death_flags < 4: |
131 if enm._bonus_dropped >= 0: | 131 if enm._bonus_dropped >= 0: |
132 enm.drop_particles(7, 0) | |
132 self._game.drop_bonus(enm.x, enm.y, enm._bonus_dropped) | 133 self._game.drop_bonus(enm.x, enm.y, enm._bonus_dropped) |
133 elif enm._bonus_dropped == -1: | 134 elif enm._bonus_dropped == -1: |
135 enm.drop_particles(10, 0) | |
134 self._game.drop_bonus(enm.x, enm.y, self._game.prng.rand_uint16() % 2) #TODO: find the formula in the binary. Can be big power sometimes. | 136 self._game.drop_bonus(enm.x, enm.y, self._game.prng.rand_uint16() % 2) #TODO: find the formula in the binary. Can be big power sometimes. |
137 else: | |
138 enm.drop_particles(4, 0) | |
135 | 139 |
136 if death_flags == 0: | 140 if death_flags == 0: |
137 enm._removed = True | 141 enm._removed = True |
138 return | 142 return |
139 | 143 |