# HG changeset patch # User Thibaut Girka # Date 1314791502 -7200 # Node ID bcf965ede96cec935c0c8a7b746d795533463a8d # Parent 6fa6d74a049ae2d61467b469e6513b052a52d280 Fix/rename/comment a few things diff --git a/pytouhou/formats/ecl.py b/pytouhou/formats/ecl.py --- a/pytouhou/formats/ecl.py +++ b/pytouhou/formats/ecl.py @@ -76,12 +76,12 @@ class ECL(object): 71: ('hhiiffffi', 'set_bullet_attributes5'), 74: ('hhiiffffi', 'set_bullet_attributes6'), 75: ('hhiiffffi', 'set_bullet_attributes7'), - 76: ('i', 'stop_bullets'), - 77: ('i', 'set_bullet_interval'), + 76: ('i', 'set_bullet_interval'), + 77: ('i', 'set_bullet_interval_ex'), 78: ('', 'delay_attack'), 79: ('', 'no_delay_attack'), 81: ('fff', 'set_bullet_launch_offset'), - 82: ('iiiiffff', 'set_bullet_attributes_ex'), + 82: ('iiiiffff', 'set_extended_bullet_attributes'), 83: ('', None), 84: ('i', None), 85: ('hhffffffiiiiii', 'laser'), diff --git a/pytouhou/vm/eclrunner.py b/pytouhou/vm/eclrunner.py --- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -431,11 +431,17 @@ class ECLRunner(object): flags) - @instruction(77) + @instruction(76) def set_bullet_interval(self, value): self._enemy.bullet_launch_interval = value + @instruction(77) + def set_bullet_interval_ex(self, value): + self.set_bullet_interval(value) + #TODO: set counter to random() * bullet_launch_interval + + @instruction(78) def set_delay_attack(self): self._enemy.delay_attack = True