|
22 | 22 | FreeFlyLocation, HMBadgeRequirements, ShopsanityPrices, WildEncounterMethodsRequired, FlyCheese, Shopsanity, \ |
23 | 23 | RequireFlash, FieldMoveMenuOrder, RedGyaradosAccess, TrainerPalette, PokemonCrystalOptions, RandomizeBadges, \ |
24 | 24 | RandomizePokegear, BreedingMethodsRequired |
| 25 | +from .phone_data import done_cmd |
25 | 26 | from .pokemon_data import ALL_UNOWN |
26 | 27 | from .utils import convert_to_ingame_text, rom_offset_to_address, write_appp_tokens, write_rom_bytes, replace_map_tiles |
27 | 28 |
|
@@ -886,6 +887,12 @@ def write_item(item: int, addresses: list[int]) -> None: |
886 | 887 | replace_map_tiles(patch, "FuchsiaCity", 2, 15, [0x07]) |
887 | 888 | replace_map_tiles(patch, "FuchsiaCity", 10, 15, [0x5C]) |
888 | 889 |
|
| 890 | + if MiscOption.BlueBlue.value in world.generated_misc.selected: |
| 891 | + write_bytes([TrainerPalette.option_blue - 1], data.rom_addresses["AP_Misc_BlueBlue_SpriteColor"] + 5) |
| 892 | + text = convert_to_ingame_text("I'm blue", False) |
| 893 | + text.append(done_cmd) |
| 894 | + write_bytes(text, data.rom_addresses["AP_Misc_BlueBlue_Text"] + 1) |
| 895 | + |
889 | 896 | if world.options.randomize_music: |
890 | 897 | for map_name, map_music in world.generated_music.maps.items(): |
891 | 898 | music_address = data.rom_addresses["AP_Music_" + map_name] |
|
0 commit comments