Extract out effect commands

This commit is contained in:
ElectroDeoxys
2025-03-27 20:48:30 +00:00
parent 0a0463dacc
commit 7fa3835665
7 changed files with 4566 additions and 635 deletions
+1
View File
@@ -227,6 +227,7 @@ DEF EFFECTCMDTYPE_AI_SELECTION EQU $08
DEF EFFECTCMDTYPE_AI_SWITCH_DEFENDING_PKMN EQU $0a
DEF EFFECTCMDTYPE_PKMN_POWER_TRIGGER EQU $07
DEF EFFECTCMDTYPE_AI EQU $09
DEF EFFECTCMDTYPE_UNK_11 EQU $0b
; wDamageEffectiveness constants
DEF WEAKNESS EQU 1
+341 -341
View File
File diff suppressed because it is too large Load Diff
+293 -293
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -50,7 +50,7 @@ CheckMatchingCommand::
.not_null_pointer
ldh a, [hBankROM]
push af
ld a, $16 ; BANK(EffectCommands)
ld a, BANK(EffectCommands)
call BankswitchROM
; store the bank number of command functions in wEffectFunctionsBank
ld a, [hli]
+2
View File
@@ -66,6 +66,8 @@ ROMX $12
"Bank 12"
ROMX $13
"Bank 13"
ROMX $16
"Bank 16"
ROMX $17
"Bank 17"
ROMX $18
+3
View File
@@ -61,6 +61,9 @@ INCLUDE "engine/bank12.asm"
SECTION "Bank 13", ROMX
INCLUDE "engine/bank13.asm"
SECTION "Bank 16", ROMX
INCLUDE "engine/bank16.asm"
SECTION "Bank 17", ROMX
INCLUDE "data/card_pointers.asm"
INCLUDE "data/cards1.asm"