diff pytouhou/vm/eclrunner.py @ 362:3be4c1078095

(partially?) implement ECL's instruction 133
author Thibaut Girka <thib@sitedethib.com>
date Mon, 09 Jul 2012 21:12:10 +0200
parents b55939b4b40d
children b07e2f71f240
line wrap: on
line diff
--- 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
+