diff pytouhou/vm/eclrunner.py @ 95:e2d8f2a56ea4

Handle ECL opcodes with string.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 04 Sep 2011 12:52:47 -0700
parents d167280a82fc
children 54929d495654
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py
+++ b/pytouhou/vm/eclrunner.py
@@ -569,6 +569,12 @@ class ECLRunner(object):
         self._enemy.extended_bullet_attributes = attributes
 
 
+    @instruction(93)
+    def set_spellcard(self, unknown, number, name):
+        #TODO: display it on the game.
+        print("%d - %s" % (number, name))
+
+
     @instruction(97)
     def set_anim(self, sprite_index):
         self._enemy.set_anim(sprite_index)