Skip to content

Commit

Permalink
Rename BATTLETYPE_SHINY to BATTLETYPE_FORCESHINY (#1058)
Browse files Browse the repository at this point in the history
* Rename BATTLETYPE_SHINY to BATTLETYPE_FORCED_SHINY

The name BATTLETYPE_SHINY gave the impression that it applied to all
battles with Shiny Pokémon, rather than merely battles with forced
Shiny Pokémon (i.e. Red Gyarados only).

* Rename to BATTLETYPE_FORCESHINY

Align name of BATTLETYPE with BATTLETYPE_FORCEITEM

---------

Co-authored-by: SnorlaxMonster <[email protected]>
  • Loading branch information
SnorlaxMonster and SnorlaxMonster authored Jul 27, 2023
1 parent 94df3c5 commit c931b98
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion constants/battle_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ DEF SPDSPCDV_SHINY EQU $AA
const BATTLETYPE_FISH
const BATTLETYPE_ROAMING
const BATTLETYPE_CONTEST
const BATTLETYPE_SHINY
const BATTLETYPE_FORCESHINY
const BATTLETYPE_TREE
const BATTLETYPE_TRAP
const BATTLETYPE_FORCEITEM
Expand Down
4 changes: 2 additions & 2 deletions engine/battle/core.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3682,7 +3682,7 @@ TryToRunAwayFromBattle:
jp z, .cant_escape
cp BATTLETYPE_CELEBI
jp z, .cant_escape
cp BATTLETYPE_SHINY
cp BATTLETYPE_FORCESHINY
jp z, .cant_escape
cp BATTLETYPE_SUICUNE
jp z, .cant_escape
Expand Down Expand Up @@ -6108,7 +6108,7 @@ LoadEnemyMon:

; Forced shiny battle type
; Used by Red Gyarados at Lake of Rage
cp BATTLETYPE_SHINY
cp BATTLETYPE_FORCESHINY
jr nz, .GenerateDVs

ld b, ATKDEFDV_SHINY ; $ea
Expand Down
2 changes: 1 addition & 1 deletion engine/battle/effect_commands.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4955,7 +4955,7 @@ SetBattleDraw:

BattleCommand_ForceSwitch:
ld a, [wBattleType]
cp BATTLETYPE_SHINY
cp BATTLETYPE_FORCESHINY
jp z, .fail
cp BATTLETYPE_TRAP
jp z, .fail
Expand Down
2 changes: 1 addition & 1 deletion engine/battle/move_effects/teleport.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BattleCommand_Teleport:
ld a, [wBattleType]
cp BATTLETYPE_SHINY
cp BATTLETYPE_FORCESHINY
jr z, .failed
cp BATTLETYPE_TRAP
jr z, .failed
Expand Down
2 changes: 1 addition & 1 deletion maps/LakeOfRage.asm
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ RedGyarados:
cry GYARADOS
closetext
loadwildmon GYARADOS, 30
loadvar VAR_BATTLETYPE, BATTLETYPE_SHINY
loadvar VAR_BATTLETYPE, BATTLETYPE_FORCESHINY
startbattle
ifequal LOSE, .NotBeaten
disappear LAKEOFRAGE_GYARADOS
Expand Down

0 comments on commit c931b98

Please sign in to comment.