summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Add-a-new-battle-transition.md16
1 files changed, 7 insertions, 9 deletions
diff --git a/Add-a-new-battle-transition.md b/Add-a-new-battle-transition.md
index 633d7fd..f31d51b 100644
--- a/Add-a-new-battle-transition.md
+++ b/Add-a-new-battle-transition.md
@@ -121,8 +121,8 @@ Next, edit [engine/battle/battle_transition.asm](../blob/master/engine/battle/ba
```diff
-cgb
- ld hl, .pals
+.cgb
++ ld hl, .rocketpals
+ ld a, [wOtherTrainerClass]
+ cp GRUNTM
+ jr z, .load_rocket_pals
@@ -134,26 +134,24 @@ cgb
+ jr z, .load_rocket_pals
+ cp SCIENTIST
+ jr z, .load_rocket_pals
+ ld hl, .pals
++.load_rocket_pals
ld a, [wTimeOfDayPal]
maskbits NUM_DAYTIMES
cp DARKNESS_F
jr nz, .not_dark
ld hl, .darkpals
-+ jr .not_dark
-+.load_rocket_pals
-+ ld hl, .rocketpals
.not_dark
- ldh a, [rSVBK]
+ ...
-...
+.pals:
+INCLUDE "gfx/overworld/trainer_battle.pal"
.darkpals:
INCLUDE "gfx/overworld/trainer_battle_dark.pal"
+.rocketpals:
+INCLUDE "gfx/overworld/rocket_battle.pal"
-
-.loadpokeballgfx:
```
And that's it! Now the overlay colors for the pattern have been changed!