diff options
-rw-r--r-- | src/data/npcs.asm | 2 | ||||
-rw-r--r-- | src/engine/bank03.asm | 34 | ||||
-rw-r--r-- | src/engine/bank04.asm | 4 | ||||
-rw-r--r-- | src/macros/scripts.asm | 4 | ||||
-rw-r--r-- | tools/script_extractor.py | 4 |
5 files changed, 24 insertions, 24 deletions
diff --git a/src/data/npcs.asm b/src/data/npcs.asm index fac14bf..8969296 100644 --- a/src/data/npcs.asm +++ b/src/data/npcs.asm @@ -772,7 +772,7 @@ KenData: db $04 db $1e db $00 - dw ScriptKen ; Pointer to Script + dw Script_Ken ; Pointer to Script tx Text03d3 db KEN_PIC db FIRE_CHARGE_DECK_ID diff --git a/src/engine/bank03.asm b/src/engine/bank03.asm index ea909f3..ecf6d2d 100644 --- a/src/engine/bank03.asm +++ b/src/engine/bank03.asm @@ -2210,12 +2210,12 @@ ScriptCommand_ShowCardReceivedScreen: ; cee2 (3:4ee2) xor a jr .asm_cef0 -Func_cf0c: ; cf0c (3:4f0c) +ScriptCommand_CheckIfCardInCollectionOrDecks: ; cf0c (3:4f0c) ld a, c call GetCardCountInCollectionAndDecks jr asm_cf16 -Func_cf12: ; cf12 (3:4f12) +ScriptCommand_CheckIfCardInCollection: ; cf12 (3:4f12) ld a, c call GetCardCountInCollection @@ -3627,14 +3627,14 @@ Script_Ishihara: ; db4a (3:5b4a) tx Text072c .ows_dba8 - run_command Func_cf0c + run_command ScriptCommand_CheckIfCardInCollectionOrDecks db $ac dw .ows_dbaf run_command ScriptCommand_PrintTextQuitFully tx Text072d .ows_dbaf - run_command Func_cf12 + run_command ScriptCommand_CheckIfCardInCollection db $ac dw .ows_dbb6 run_command ScriptCommand_PrintTextQuitFully @@ -3679,14 +3679,14 @@ Script_Ishihara: ; db4a (3:5b4a) tx Text072c .ows_dbe1 - run_command Func_cf0c + run_command ScriptCommand_CheckIfCardInCollectionOrDecks db $bb dw .ows_dbe8 run_command ScriptCommand_PrintTextQuitFully tx Text0734 .ows_dbe8 - run_command Func_cf12 + run_command ScriptCommand_CheckIfCardInCollection db $bb dw .ows_dbef run_command ScriptCommand_PrintTextQuitFully @@ -3731,14 +3731,14 @@ Script_Ishihara: ; db4a (3:5b4a) tx Text072c .ows_dc1a - run_command Func_cf0c + run_command ScriptCommand_CheckIfCardInCollectionOrDecks db $b8 dw .ows_dc21 run_command ScriptCommand_PrintTextQuitFully tx Text073a .ows_dc21 - run_command Func_cf12 + run_command ScriptCommand_CheckIfCardInCollection db $b8 dw .ows_dc28 run_command ScriptCommand_PrintTextQuitFully @@ -3988,7 +3988,7 @@ Script_Gal1: ; e0cf (3:60cf) run_command ScriptCommand_QuitScriptFully .ows_e0eb - run_command Func_cf0c + run_command ScriptCommand_CheckIfCardInCollectionOrDecks db $59 dw .ows_e0f3 run_command ScriptCommand_PrintTextString @@ -3996,7 +3996,7 @@ Script_Gal1: ; e0cf (3:60cf) run_command ScriptCommand_QuitScriptFully .ows_e0f3 - run_command Func_cf12 + run_command ScriptCommand_CheckIfCardInCollection db $59 dw .ows_e0fb run_command ScriptCommand_PrintTextString @@ -4755,14 +4755,14 @@ Script_e61f: ; e61f (3:661f) tx Text06ee .ows_e648 - run_command Func_cf0c + run_command ScriptCommand_CheckIfCardInCollectionOrDecks db $1c dw .ows_e64f run_command ScriptCommand_PrintTextQuitFully tx Text06ef .ows_e64f - run_command Func_cf12 + run_command ScriptCommand_CheckIfCardInCollection db $1c dw .ows_e656 run_command ScriptCommand_PrintTextQuitFully @@ -4805,14 +4805,14 @@ Script_e61f: ; e61f (3:661f) tx Text06f6 .ows_e67f - run_command Func_cf0c + run_command ScriptCommand_CheckIfCardInCollectionOrDecks db $ab dw .ows_e686 run_command ScriptCommand_PrintTextQuitFully tx Text06f7 .ows_e686 - run_command Func_cf12 + run_command ScriptCommand_CheckIfCardInCollection db $ab dw .ows_e68d run_command ScriptCommand_PrintTextQuitFully @@ -4855,14 +4855,14 @@ Script_e61f: ; e61f (3:661f) tx Text06fd .ows_e6b6 - run_command Func_cf0c + run_command ScriptCommand_CheckIfCardInCollectionOrDecks db $32 dw .ows_e6bd run_command ScriptCommand_PrintTextQuitFully tx Text06fe .ows_e6bd - run_command Func_cf12 + run_command ScriptCommand_CheckIfCardInCollection db $32 dw .ows_e6c4 run_command ScriptCommand_PrintTextQuitFully @@ -5237,7 +5237,7 @@ Script_ee76: ; ee76 (3:6e76) INCROM $ee88, $ef22 -ScriptKen: ; ef22 (3:6f22) +Script_Ken: ; ef22 (3:6f22) start_script run_command ScriptCommand_TryGivePCPack db $09 diff --git a/src/engine/bank04.asm b/src/engine/bank04.asm index 13df81b..3a9605e 100644 --- a/src/engine/bank04.asm +++ b/src/engine/bank04.asm @@ -982,8 +982,8 @@ OverworldScriptTable: ; 1217b (4:617b) dw ScriptCommand_MoveActiveNPCByDirection dw ScriptCommand_CloseTextBox dw ScriptCommand_GiveBoosterPacks - dw Func_cf0c - dw Func_cf12 + dw ScriptCommand_CheckIfCardInCollectionOrDecks + dw ScriptCommand_CheckIfCardInCollection dw ScriptCommand_GiveCard dw ScriptCommand_TakeCard dw Func_cf53 diff --git a/src/macros/scripts.asm b/src/macros/scripts.asm index bd1a58f..032299d 100644 --- a/src/macros/scripts.asm +++ b/src/macros/scripts.asm @@ -27,8 +27,8 @@ ENDM const ScriptCommand_MoveActiveNPCByDirection_index ; $0a const ScriptCommand_CloseTextBox_index ; $0b const ScriptCommand_GiveBoosterPacks_index ; $0c - const Func_cf0c_index ; $0d - const Func_cf12_index ; $0e + const ScriptCommand_CheckIfCardInCollectionOrDecks_index ; $0d + const ScriptCommand_CheckIfCardInCollection_index ; $0e const ScriptCommand_GiveCard_index ; $0f const ScriptCommand_TakeCard_index ; $10 const Func_cf53_index ; $11 diff --git a/tools/script_extractor.py b/tools/script_extractor.py index f043010..70cdb4a 100644 --- a/tools/script_extractor.py +++ b/tools/script_extractor.py @@ -188,8 +188,8 @@ def createList(): # this is a func just so all this can go at the bottom ("ScriptCommand_MoveActiveNPCByDirection", "w", DO_NOT_QUIT), ("ScriptCommand_CloseTextBox", "", DO_NOT_QUIT), ("ScriptCommand_GiveBoosterPacks", "bbb", DO_NOT_QUIT), - ("Func_cf0c", "bj", DO_NOT_QUIT), # more complex behavior too (jumping) - ("Func_cf12", "bj", DO_NOT_QUIT), + ("ScriptCommand_CheckIfCardInCollectionOrDecks", "bj", DO_NOT_QUIT), # more complex behavior too (jumping) + ("ScriptCommand_CheckIfCardInCollection", "bj", DO_NOT_QUIT), ("ScriptCommand_GiveCard", "b", DO_NOT_QUIT), ("ScriptCommand_TakeCard", "b", DO_NOT_QUIT), ("Func_cf53", "w", DO_NOT_QUIT), # more complex behavior too (jumping) |