Mercurial > touhou
comparison pytouhou/vm/eclrunner.py @ 329:1bb78c469f64
Fix difficulty influence on bullet launch interval, and fix instruction 77's rand usage
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 24 Jun 2012 17:00:07 +0200 |
parents | 1a4ffdda8735 |
children | 94fdb6c782c1 |
comparison
equal
deleted
inserted
replaced
328:56523a16db1d | 329:1bb78c469f64 |
---|---|
645 self._enemy.set_bullet_launch_interval(value) | 645 self._enemy.set_bullet_launch_interval(value) |
646 | 646 |
647 | 647 |
648 @instruction(77) | 648 @instruction(77) |
649 def set_bullet_interval_ex(self, value): | 649 def set_bullet_interval_ex(self, value): |
650 self._enemy.set_bullet_launch_interval(value, self._game.prng.rand_double()) #TODO: check | 650 self._enemy.set_bullet_launch_interval(value, self._game.prng.rand_uint32()) |
651 | 651 |
652 | 652 |
653 @instruction(78) | 653 @instruction(78) |
654 def set_delay_attack(self): | 654 def set_delay_attack(self): |
655 self._enemy.delay_attack = True | 655 self._enemy.delay_attack = True |