diff options
-rw-r--r-- | Make-evening-the-fourth-time-of-day.md | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/Make-evening-the-fourth-time-of-day.md b/Make-evening-the-fourth-time-of-day.md index 301f845..eae1dbb 100644 --- a/Make-evening-the-fourth-time-of-day.md +++ b/Make-evening-the-fourth-time-of-day.md @@ -613,8 +613,7 @@ To load the darkness.pal colors for Flash maps, we'll treat it like any other sp + ld de, wBGPals1 + ld hl, DarknessPalette + ld bc, 8 palettes -+ call FarCopyWRAM -+ ret ++ jp FarCopyWRAM + +DarknessPalette: +INCLUDE "gfx/tilesets/darkness.pal" @@ -626,15 +625,12 @@ As for NPCs, the npc_sprites.pal will already get loaded correctly, but we need +LoadSpecialNPCPalette: + call GetMapTimeOfDay + bit IN_DARKNESS_F, a -+ jr z, .not_dark ++ jr z, .do_nothing + ld a, [wStatusFlags] + bit STATUSFLAGS_FLASH_F, a -+ jr z, .darkness ++ jr nz, .do_nothing + -+.not_dark -+ jr .do_nothing -+ -+.darkness ++;darkness + call LoadNPCDarknessPalette + scf + ret @@ -648,8 +644,7 @@ As for NPCs, the npc_sprites.pal will already get loaded correctly, but we need + ld de, wOBPals1 + ld hl, NPCDarknessPalette + ld bc, 8 palettes -+ call FarCopyWRAM -+ ret ++ jp FarCopyWRAM + +NPCDarknessPalette: +INCLUDE "gfx/overworld/npc_sprites_darkness.pal" @@ -712,14 +707,9 @@ We'll just have to call `LoadSpecialNPCPalette` in the right place to load the n +.nite + add hl, de .morn_day - ld de, wBGPals1 palette PAL_BG_ROOF color 1 - ld bc, 4 - ld a, BANK(wBGPals1) - call FarCopyWRAM - ret + ... ``` - ## 6. Reuse night wild encounters for evening We *could* define unique evening wild encounters, but defining four sets of wild data for every map would take up extra space and be mostly redundant. For now evening will have the same encounters as night. @@ -1466,6 +1456,6 @@ Unless I've missed something, that's all the RTC-related features and content, n There are some features limited to night that I left alone, so they aren't extended to happen in the evening. Two in particular: Officer trainers only battle you at night, and phone call trainers who give you items only change behavior at night. So in the evening, they act like it's morning or day. -You'll need at least version 4.5.2 (or 2.5.2++) of [Polished Map](https://github.com/Rangi42/polished-map) to view and edit evening colors. It detects that darkness has been replaced by evening in bg_tiles.pal because there are four overworld water colors. (If there were three, it would assume they apply to morning, day, and night, and that darkness still exists.) It can't automatically detect that evening roof colors exist, so you have to change the **Options→Roof Palettes** selection to **Morn + Day, Night, Custom**; then the evening colors will be loaded into the Custom palette. +You'll need at least version of [Polished Map](https://github.com/Rangi42/polished-map) to view and edit evening colors. It detects that darkness has been replaced by evening in bg_tiles.pal because there are four overworld water colors. (If there were three, it would assume they apply to morning, day, and night, and that darkness still exists.) It can't automatically detect that evening roof colors exist, so you have to change the **Options→Roof Palettes** selection to **Morn + Day, Night, Custom**; then the evening colors will be loaded into the Custom palette.  |