pokeemerald/include
Frank DeBlasio 0bdac90cfe
Refactor mugshots (#4000)
* Refactor battle mugshots
The battle mugshot transitions have been merged into the one transition id and are now loaded depending on the trainer data.

Two new fields have been added to struct Trainer; mugshotEnabled and mugshotColor. mugshotEnabled is the toggle for loading the mugshot transition when set to TRUE and mugshotColor is the color of the mugshot for that particular trainer.

The Elite Four and Champion have been updated so their mugshots are correctly loaded when you battle them.

A bug has also been fixed where if the player starts on a tile that has an active field effect, the player's sprite will use the palette of the opponent's sprite.

* Added a new folder in src/data named battle_transitions.

The two look ups for the opponent rotation scaling and coords have been put into their own files and added into this new folder.

The coords look up has also been changed to use the  struct.

* Fixed errors with modern that were preventing compile

* Added mugshot coords to gTrainerSprites

* Added rotation scales to gTrainerSprites

* Replaced tabs with spaces

* Incorporated comments

* Added battle_transition include back to data.c

* Fixed alignment issues in Mugshots_CreateTrainerPics

---------

Co-authored-by: pkmnsnfrn <pkmnsnfrn@gmail.com>
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2024-01-16 00:45:13 +01:00
..
config Exp yield configs (#3995) 2024-01-15 23:49:12 +01:00
constants Refactor mugshots (#4000) 2024-01-16 00:45:13 +01:00
gba Merge branch '_RHH/master' into _RHH/upcoming 2024-01-09 09:19:12 -03:00
test VSync BENCHMARKs and avoid AdvanceRandom in tests (#3866) 2023-12-30 11:10:40 +01:00
agb_flash.h
AgbRfu_LinkManager.h
apprentice.h
bard_music.h
battle_ai_main.h
battle_ai_switch_items.h add emitResult argument to ShouldSwitch AI functions (#3784) 2023-12-21 11:40:04 +01:00
battle_ai_util.h Move functions to battle_ai_util.c 2024-01-12 04:01:33 +09:00
battle_anim.h Merge branch '_RHH/master' into _RHH/upcoming 2024-01-09 09:19:12 -03:00
battle_arena.h
battle_bg.h
battle_controllers.h
battle_debug.h
battle_dome.h
battle_dynamax.h
battle_factory_screen.h
battle_factory.h
battle_gfx_sfx_util.h
battle_interface.h Ally Switch (#3533) 2023-12-20 15:26:28 +01:00
battle_main.h Refactor trainer classes (#3875) 2024-01-04 13:30:42 +01:00
battle_message.h
battle_pike.h
battle_pyramid_bag.h
battle_pyramid.h
battle_records.h
battle_script_commands.h Renamed seteffectwithchance to setadditionaleffects 2023-12-30 20:29:09 +09:00
battle_scripts.h Applied more review fixes 2024-01-12 03:02:48 +09:00
battle_setup.h
battle_tent.h
battle_tower.h
battle_transition_frontier.h
battle_transition.h Refactor mugshots (#4000) 2024-01-16 00:45:13 +01:00
battle_tv.h
battle_util.h Applied more review fixes 2024-01-12 03:02:48 +09:00
battle_util2.h
battle_z_move.h Removed some hardcoded move IDs (#3982) 2024-01-12 22:41:46 +01:00
battle.h Merge branch '_RHH/master' into _RHH/upcoming 2024-01-11 19:51:11 -03:00
berry_blender.h
berry_crush.h
berry_fix_program.h
berry_powder.h
berry_tag_screen.h
berry.h Remove unused function 2024-01-04 16:04:00 +00:00
bike.h
birch_pc.h Refactor dex completion (again) (#3937) 2024-01-11 13:35:31 -03:00
braille_puzzles.h
cable_club.h
clear_save_data_menu.h
clock.h
coins.h
confetti_util.h
config.h Optional high-quality RNG (#3780) 2023-12-22 17:39:15 +00:00
contest_ai.h
contest_effect.h
contest_link.h
contest_painting.h
contest_util.h
contest.h Merge branch 'master' of https://github.com/pret/pokeemerald into pretmergenewyears 2023-12-30 20:49:05 +01:00
coord_event_weather.h
credits.h
crt0.h Allocate initialized sections for EWRAM and IWRAM (#3892) 2024-01-02 14:24:52 +00:00
data.h Refactor mugshots (#4000) 2024-01-16 00:45:13 +01:00
daycare.h
debug.h
decompress.h
decoration_inventory.h
decoration.h
dewford_trend.h
digit_obj_util.h
diploma.h
dodrio_berry_picking.h
dynamic_placeholder_text_util.h
easy_chat.h
egg_hatch.h
ereader_helpers.h
ereader_screen.h
event_data.h
event_object_lock.h
event_object_movement.h Remove redundant table 2024-01-04 16:07:12 +00:00
event_scripts.h Implement Pokemon Box Link functionality (#3837) 2023-12-28 11:47:00 +01:00
evolution_graphics.h
evolution_scene.h
expansion_intro.h
faraway_island.h
field_camera.h
field_control_avatar.h
field_door.h
field_effect_helpers.h
field_effect.h
field_message_box.h
field_player_avatar.h
field_poison.h
field_screen_effect.h
field_special_scene.h
field_specials.h Merge branch 'feature/dynmulti' into feature/dynmulti-expansion 2023-12-26 14:22:49 +01:00
field_tasks.h
field_weather.h
fieldmap.h
fldeff_misc.h
fldeff.h
fonts.h
fpmath.h
frontier_pass.h
frontier_util.h
global.berry.h Remove leftover code for myself 2024-01-04 16:12:39 +00:00
global.fieldmap.h
global.h Raised the limit of max items per stack to 999 (#3923) 2024-01-14 16:32:38 -03:00
global.tv.h
graphics.h Merge branch 'master' of https://github.com/pret/pokeemerald into pretmergenewyears 2023-12-30 20:49:05 +01:00
gym_leader_rematch.h
hall_of_fame.h
heal_location.h
image_processing_effects.h
international_string_util.h
intro_credits_graphics.h
intro.h
item_ball.h Item Ball refactor / Pluralize item names for giveitem and finditem (#3942) 2024-01-14 21:35:45 +01:00
item_icon.h
item_menu_icons.h
item_menu.h
item_use.h Merge branch 'upcoming' into berryexpansion 2023-12-29 14:32:10 +01:00
item.h Moved Item Effects to gItems (#3991) 2024-01-14 10:03:48 +01:00
landmark.h
level_caps.h New Feature: Level Caps (#3632) 2024-01-09 18:47:23 +01:00
libgcnmultiboot.h
librfu.h
lilycove_lady.h
link_rfu.h
link.h
list_menu.h
load_save.h
lottery_corner.h
m4a.h
mail.h
main_menu.h
main.h
map_name_popup.h
match_call.h
math_util.h
mauville_old_man.h
menu_helpers.h
menu_specialized.h
menu.h
metatile_behavior.h
mini_printf.h
minigame_countdown.h
mirage_tower.h
mon_markings.h
money.h
move_relearner.h
multiboot_pokemon_colosseum.h
multiboot.h
mystery_event_menu.h
mystery_event_msg.h
mystery_event_script.h
mystery_gift_client.h
mystery_gift_link.h
mystery_gift_menu.h
mystery_gift_server.h
mystery_gift_view.h
mystery_gift.h
naming_screen.h
new_game.h
option_menu.h
overworld.h
palette_util.h
palette.h
party_menu.h Moved Item Effects to gItems (#3991) 2024-01-14 10:03:48 +01:00
pc_screen_effect.h
play_time.h
player_pc.h
pokeball.h
pokeblock.h
pokedex_area_region_map.h
pokedex_area_screen.h
pokedex_cry_screen.h
pokedex_plus_hgss.h
pokedex.h Removed footprint field when P_FOOTPRINTS is FALSE (#3925) 2024-01-04 21:54:03 +01:00
pokemon_animation.h
pokemon_debug.h
pokemon_icon.h
pokemon_jump.h
pokemon_size_record.h
pokemon_storage_system.h
pokemon_summary_screen.h Merge branch 'master' of https://github.com/pret/pokeemerald into pretmergenewyears 2023-12-30 20:49:05 +01:00
pokemon.h Moved Item Effects to gItems (#3991) 2024-01-14 10:03:48 +01:00
pokenav.h Add PokéNav too 2023-12-12 23:20:22 +01:00
random.h Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into secondary_effects_overhaul_merge 2024-01-01 03:50:36 +09:00
rayquaza_scene.h
record_mixing.h
recorded_battle.h Optional high-quality RNG (#3780) 2023-12-22 17:39:15 +00:00
region_map.h
reload_save.h
reset_rtc_screen.h
reshow_battle_screen.h Ally Switch (#3533) 2023-12-20 15:26:28 +01:00
roamer.h
rotating_gate.h
rotating_tile_puzzle.h
roulette.h
rtc.h
safari_zone.h
save_location.h
save.h
scanline_effect.h
script_menu.h Merge branch 'feature/dynmulti' into feature/dynmulti-expansion 2023-12-26 14:22:49 +01:00
script_movement.h
script_pokemon_util.h
script.h
secret_base.h
shop.h
siirtc.h
slot_machine.h
sound.h
start_menu.h
starter_choose.h
strings.h Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into berryexpansion 2024-01-05 00:32:21 +01:00
task.h
test_runner.h Tests do not allow to use SEND_OUT if the chosen mon is fainted (#3752) 2023-12-23 00:27:40 +01:00
text_window.h
tileset_anims.h
tilesets.h
time_events.h
title_screen.h
trade.h
trader.h
trainer_card.h
trainer_hill.h
trainer_pokemon_sprites.h Backwards-compatible BoxPokémon Refactor (#3438) 2023-12-27 17:48:17 +01:00
trainer_see.h
trig.h
tv.h
union_room_battle.h
union_room_chat.h
union_room_player_avatar.h
union_room.h
util.h
vs_seeker.h
walda_phrase.h
wallclock.h
wild_encounter.h
wonder_news.h