shithub: pokecrystal

Download patch

ref: d37f9869712ded6feed36537932c75255a3665ae
parent: e14ee0838d958dcd3a19f4f097a47d0f967ad1f0
author: Bryan Bishop <[email protected]>
date: Thu Apr 26 10:46:46 EDT 2012

revert to dbw in MapScriptHeader.to_asm()

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3468,8 +3468,7 @@
         output += "db %d"%self.callback_count
         if len(self.callbacks) > 0:
             output += "\n\n; callbacks\n\n"
-            #not so sure about this next one
-            output += "\n\n".join(["db "+str(p["hook"].byte)+"\ndw "+p["callback"].to_asm() for p in self.callbacks])
+            output += "\n\n".join(["dbw "+str(p["hook"].byte)+", "+p["callback"].to_asm() for p in self.callbacks])
         return output
 
 all_map_script_headers = []