(partially?) implement ECL's instruction 133
author |
Thibaut Girka <thib@sitedethib.com> |
date |
Mon, 09 Jul 2012 21:12:10 +0200 |
parents |
b55939b4b40d |
children |
cb1460b9b6cf |
files |
pytouhou/formats/ecl.py pytouhou/vm/eclrunner.py |
diffstat |
2 files changed, 6 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/pytouhou/formats/ecl.py
+++ b/pytouhou/formats/ecl.py
@@ -149,7 +149,7 @@ class ECL(object):
130: ('i', None),
131: ('ffiiii', 'set_difficulty_coeffs'),
132: ('i', 'set_invisible'),
- 133: ('', None),
+ 133: ('', 'copy_callbacks?'),
134: ('', None),
135: ('i', 'enable_spellcard_bonus')} #TODO
--- a/pytouhou/vm/eclrunner.py
+++ b/pytouhou/vm/eclrunner.py
@@ -1106,3 +1106,8 @@ class ECLRunner(object):
def set_invisible(self, value):
self._enemy.visible = not bool(value)
+
+ @instruction(133)
+ def copy_callbacks(self):
+ self._enemy.timeout_callback = self._enemy.death_callback
+