Rename MON_ID
to MON_OT_ID
(#1114)
* Rename MON_ID to MON_TRAINER_ID The constant name MON_ID implies it relates to the ID number of the Pokémon itself. However, it actually refers to the Trainer ID number of the Pokémon's Original Trainer. Renaming it to MON_TRAINER_ID makes it substantially more clear what its purpose is. The original definition of MON_ID is preserved in macros/legacy.asm * Remove MON_ID from macros/legacy.asm Co-authored-by: Sylvie <35663410+Rangi42@users.noreply.github.com> * Apply rename to missed file * Rename to `MON_OT_ID` --------- Co-authored-by: SnorlaxMonster <snorlaxmonster@users.noreply.github.com> Co-authored-by: Sylvie <35663410+Rangi42@users.noreply.github.com> Co-authored-by: vulcandth <vulcandth@gmail.com>
This commit is contained in:
@@ -3864,9 +3864,9 @@ InitBattleMon:
|
||||
ld a, MON_SPECIES
|
||||
call GetPartyParamLocation
|
||||
ld de, wBattleMonSpecies
|
||||
ld bc, MON_ID
|
||||
ld bc, MON_OT_ID
|
||||
call CopyBytes
|
||||
ld bc, MON_DVS - MON_ID
|
||||
ld bc, MON_DVS - MON_OT_ID
|
||||
add hl, bc
|
||||
ld de, wBattleMonDVs
|
||||
ld bc, MON_POKERUS - MON_DVS
|
||||
@@ -3950,9 +3950,9 @@ InitEnemyMon:
|
||||
ld hl, wOTPartyMon1Species
|
||||
call GetPartyLocation
|
||||
ld de, wEnemyMonSpecies
|
||||
ld bc, MON_ID
|
||||
ld bc, MON_OT_ID
|
||||
call CopyBytes
|
||||
ld bc, MON_DVS - MON_ID
|
||||
ld bc, MON_DVS - MON_OT_ID
|
||||
add hl, bc
|
||||
ld de, wEnemyMonDVs
|
||||
ld bc, MON_POKERUS - MON_DVS
|
||||
@@ -7074,7 +7074,7 @@ GiveExperiencePoints:
|
||||
call Divide
|
||||
; Boost Experience for traded Pokemon
|
||||
pop bc
|
||||
ld hl, MON_ID
|
||||
ld hl, MON_OT_ID
|
||||
add hl, bc
|
||||
ld a, [wPlayerID]
|
||||
cp [hl]
|
||||
|
Reference in New Issue
Block a user