You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Misc fixes for the usage of constants
Several improvements that will make it easier to edit some data structures for everyone.
This commit is contained in:
@@ -3454,7 +3454,7 @@ IsThePlayerPkmnTypesEffectiveAgainstOTPkmn: ; 3d618
|
||||
ld bc, BASE_DATA_SIZE
|
||||
call AddNTimes
|
||||
ld de, EnemyMonType
|
||||
ld bc, 2
|
||||
ld bc, BASE_CATCH_RATE - BASE_TYPES
|
||||
ld a, BANK(BaseData)
|
||||
call FarCopyBytes
|
||||
ld a, [BattleMonType1]
|
||||
|
||||
@@ -3881,11 +3881,11 @@ BattleCommand_Counter: ; 35813
|
||||
ld de, StringBuffer1
|
||||
call GetMoveData
|
||||
|
||||
ld a, [StringBuffer1 + 2]
|
||||
ld a, [StringBuffer1 + MOVE_POWER]
|
||||
and a
|
||||
ret z
|
||||
|
||||
ld a, [StringBuffer1 + 3]
|
||||
ld a, [StringBuffer1 + MOVE_TYPE]
|
||||
cp SPECIAL
|
||||
ret nc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user