INCLUDE "includes.asm"

INCLUDE "home.asm"
INCLUDE "battle/files.asm"
INCLUDE "data/files.asm"

SECTION "Code 1", ROMX, BANK[CODE_1]

INCLUDE "engine/map_objects.asm"

INCLUDE "engine/intro_menu.asm"

INCLUDE "gfx/initialize_map.asm"

INCLUDE "engine/learn.asm"

INCLUDE "engine/link_trade.asm"

INCLUDE "items/item_attributes.asm"
INCLUDE "engine/npc_movement.asm"

INCLUDE "engine/happiness.asm"

INCLUDE "engine/daycare.asm"

INCLUDE "engine/specials2.asm"

INCLUDE "engine/timeofdaypals.asm"

INCLUDE "engine/fruit_trees.asm"

INCLUDE "misc/mobile_function_refugees.asm"

INCLUDE "battle/place_waiting_text.ctf"

INCLUDE "gfx/push_oam.asm"

INCLUDE "event/sweet_scent.asm"

SECTION "Code 2", ROMX, BANK[CODE_2]

INCLUDE "engine/color.asm"

INCLUDE "engine/printer.ctf"

INCLUDE "event/customization.ctf"

INCLUDE "event/move_relearner.asm"

INCLUDE "event/poisonstep.asm"

INCLUDE "engine/pokedex2.asm"

SECTION "Code 3", ROMX, BANK[CODE_3]

INCLUDE "items/item_effects.asm"

SECTION "Code 4", ROMX, BANK[CODE_4]

INCLUDE "engine/pack.asm"
INCLUDE "engine/time.asm"
INCLUDE "engine/tmhm.asm"
INCLUDE "engine/namingscreen.ctf"

INCLUDE "event/itemball.asm"
INCLUDE "engine/healmachineanim.asm"
INCLUDE "event/whiteout.asm"
INCLUDE "event/itemfinder.asm"
INCLUDE "engine/startmenu.ctf"
INCLUDE "engine/selectmenu.asm"
INCLUDE "event/elevator.asm"

INCLUDE "event/magnet_train.asm"

INCLUDE "engine/crash_report.asm"

INCLUDE "engine/repel.asm"

INCLUDE "engine/signpost.ctf"

SECTION "Code 5", ROMX, BANK[CODE_5]

INCLUDE "engine/overworld.asm"
INCLUDE "engine/tile_events.asm"
INCLUDE "engine/save.asm"
INCLUDE "engine/spawn_points.asm"
INCLUDE "engine/map_setup.asm"

; linked, do not separate
INCLUDE "engine/mart.ctf"
INCLUDE "engine/money.asm"
INCLUDE "event/bank.ctf"
INCLUDE "items/marts.asm" ; technically can be removed, but should keep it here just in case
; end linked section

INCLUDE "event/daycare.asm"
INCLUDE "engine/breeding.asm"

SECTION "Code 6", ROMX, BANK[CODE_6]

INCLUDE "engine/move_mon.asm"

INCLUDE "engine/move_player_pic.asm"

INCLUDE "engine/name_player.asm"

INCLUDE "engine/playerpic.asm"

INCLUDE "items/pokeball_wobble.asm"

INCLUDE "text/battle.ctf"

SECTION "Code 7", ROMX, BANK[CODE_7]

INCLUDE "data/egg_moves.asm"
INCLUDE "engine/clock_reset.asm"

INCLUDE "engine/print_number.asm"

INCLUDE "event/hidden_item.asm"

INCLUDE "battle/badge_boosts.asm"

SECTION "Code 8", ROMX, BANK[CODE_8]

INCLUDE "engine/pokepic.asm"

INCLUDE "engine/objects.asm"

INCLUDE "engine/scrolling_menu.asm"
INCLUDE "engine/switch_items.asm"

INCLUDE "engine/mon_menu.asm"
INCLUDE "battle/menu.asm"
INCLUDE "engine/buy_sell_toss.asm"
INCLUDE "engine/trainer_card.asm"
INCLUDE "trainers/dvs.asm"

INCLUDE "battle/consume_held_item.asm"

MoveEffectsPointers: INCLUDE "battle/moves/move_effects_pointers.asm"

MoveEffects: INCLUDE "battle/moves/move_effects.asm"

INCLUDE "battle/effect_commands_2.asm"

INCLUDE "engine/player_movement.asm"

INCLUDE "engine/search.asm"

SECTION "Code 9", ROMX, BANK[CODE_9]

INCLUDE "engine/link.ctf"

INCLUDE "engine/wildmons.asm"

INCLUDE "battle/link_battle_result.asm"

SECTION "Code 10", ROMX, BANK[CODE_10]

INCLUDE "battle/trainer_huds.asm"

TrainerClassNames:: INCLUDE "text/trainer_class_names.asm"

INCLUDE "battle/ai/redundant.asm"

INCLUDE "event/move_deleter.asm"

INCLUDE "engine/tmhm2.asm"

MoveDescriptions:: INCLUDE "battle/moves/move_descriptions.ctf"

INCLUDE "battle/initialize.asm"

INCLUDE "battle/music.asm"

INCLUDE "gfx/place_graphic.asm"

INCLUDE "engine/spawn_player.asm"

INCLUDE "engine/object_structs.asm"

INCLUDE "engine/walk_follow.asm"

INCLUDE "battle/abilities.asm"

INCLUDE "engine/heal_party.asm"

SECTION "Code 11", ROMX, BANK[CODE_11]

INCLUDE "engine/main_menu.ctf"

SECTION "Code 12", ROMX, BANK[CODE_12]

INCLUDE "battle/ai/move.asm"
INCLUDE "battle/ai/items.asm"

AIScoring: INCLUDE "battle/ai/scoring.asm"

INCLUDE "event/mining.ctf"
INCLUDE "event/smelting.ctf"
INCLUDE "event/jeweling.ctf"

LandmarkSignGFX:: INCBIN "gfx/misc/landmarksign.2bpp"

INCLUDE "event/forced_movement.asm"

SECTION "Code 13", ROMX, BANK[CODE_13]

INCLUDE "engine/pokedex.ctf"

INCLUDE "battle/moves/moves.asm"

INCLUDE "engine/evolve.asm"
INCLUDE "data/evos_attacks_pointers.asm"
INCLUDE "data/evos_attacks.asm"

INCLUDE "engine/printnum.asm"

INCLUDE "gfx/blank_screen.asm"

SECTION "Code 14", ROMX, BANK[CODE_14]

INCLUDE "engine/prof_oaks_pc.asm"

ItemNames:: INCLUDE "items/item_names.asm"

INCLUDE "items/item_descriptions.ctf"

MoveNames:: INCLUDE "battle/moves/move_names.asm"

INCLUDE "engine/landmarks.asm"

INCLUDE "engine/math.asm"

INCLUDE "engine/vwf.asm"

INCLUDE "engine/sound_stack.asm"

SECTION "Code 15", ROMX, BANK[CODE_15]

INCLUDE "event/pachisi.ctf"

INCLUDE "engine/place_on_screen.ctf"

INCLUDE "engine/items.asm"

INCLUDE "event/milos_switch.asm"

INCLUDE "event/magnet_train_station.ctf"

SECTION "Code 16", ROMX, BANK[CODE_16]

INCLUDE "gfx/palettes.asm"
INCLUDE "tilesets/palette_maps.asm"

TileCollisionTable:: INCLUDE "tilesets/collision.asm"

INCLUDE "engine/save2.asm"

INCLUDE "engine/map_triggers.asm"

INCLUDE "engine/copy_tilemap_at_once.asm"

Shrink1Pic: INCBIN "gfx/shrink1.2bpp.lz"

Shrink2Pic: INCBIN "gfx/shrink2.2bpp.lz"

INCLUDE "misc/link_display.asm"

Tilesets:: INCLUDE "tilesets/tileset_headers.asm"

INCLUDE "engine/trademon_pic.asm"

INCLUDE "engine/set_caught_data.asm"

INCLUDE "engine/find_pokemon.asm"

INCLUDE "engine/stats_screen.ctf"

INCLUDE "engine/evolution_animation.asm"

INCLUDE "event/end_game.asm"

INCLUDE "battle/sliding_intro.asm"

INCLUDE "misc/gbc_only.ctf"

INCLUDE "engine/pokerus.asm"

INCLUDE "engine/main_menu_debug.ctf"

SECTION "Code 17", ROMX, BANK[CODE_17]

INCLUDE "engine/party_menu.ctf"

INCLUDE "engine/pokemon_structs.asm"

INCLUDE "engine/hp_bars.asm"

INCLUDE "engine/print_mon_stats.asm"

INCLUDE "engine/gender.asm"
INCLUDE "engine/show_pokemon_info.asm"
INCLUDE "engine/switch_party_mons.asm"

INCLUDE "gfx/load_pics.asm"

BaseData:: INCLUDE "data/base_stats.asm"

PokemonNames:: INCLUDE "data/pokemon_names.asm"

INCLUDE "engine/events_2.asm"

SECTION "Code 18", ROMX, BANK[CODE_18]

; linked, do not separate
INCLUDE "event/park_minigame.ctf"
INCLUDE "data/park_minigame.asm"
; end linked section

INCLUDE "engine/menu.asm"
INCLUDE "event/red_credits.asm"

INCLUDE "engine/fish.asm"

INCLUDE "engine/options_menu.ctf"

INCLUDE "engine/variables.asm"

INCLUDE "engine/hdma.asm"

SECTION "Code 19", ROMX, BANK[CODE_19]

INCLUDE "event/ballmaking.ctf"
INCLUDE "event/happiness_tutor.asm"

INCLUDE "engine/specials.asm"

SECTION "Code 20", ROMX, BANK[CODE_20]

INCLUDE "engine/battle_start.asm"

INCLUDE "engine/sprites.asm"

INCLUDE "engine/mon_icons.asm"

INCLUDE "engine/timeset.asm"
INCLUDE "engine/pokegear.asm"

INCLUDE "engine/script_conditionals.asm"

INCLUDE "event/qrcode.asm"

SECTION "Code 21", ROMX, BANK[CODE_21]

INCLUDE "engine/events.asm"
INCLUDE "engine/std_scripts.asm"

SECTION "Code 22", ROMX, BANK[CODE_22]

; linked, do not separate
INCLUDE "event/battle_tower.asm"
INCLUDE "text/battle_tower.ctf"
; end linked section

INCLUDE "engine/specials_move_tutor.asm"

INCLUDE "battle/bg_effects.asm"

INCLUDE "engine/rtc.asm"

SECTION "Code 23", ROMX, BANK[CODE_23]

INCLUDE "engine/time_capsule_conversion.asm"

SECTION "Code 24", ROMX, BANK[CODE_24]

INCLUDE "gfx/pics/animation.asm"
INCLUDE "engine/dateset.ctf"
INCLUDE "engine/treasure_bag.asm"

PackFGFX: INCBIN "gfx/misc/pack_f.2bpp"

SECTION "Code 25", ROMX, BANK[CODE_25]

INCLUDE "engine/slot_machine.asm"

INCLUDE "engine/field_moves.asm"
INCLUDE "engine/field_items.asm"

SECTION "Code 26", ROMX, BANK[CODE_26]

INCLUDE "engine/engine_flags.asm"

SECTION "Code 27", ROMX, BANK[CODE_27]

INCLUDE "event/bingo.ctf"

SECTION "Code 28", ROMX, BANK[CODE_28]

INCLUDE "battle/anims.asm"

INCLUDE "engine/print_bcd.asm"

SECTION "Code 29", ROMX, BANK[CODE_29]

; linked, do not separate
INCLUDE "battle/anim_objects.asm"
INCLUDE "battle/anim_commands.asm"
INCLUDE "engine/growl_roar_ded_vblank_hook.asm"
; end of linked section

INCLUDE "engine/experience.asm"

INCLUDE "engine/pop_mon.asm"

SECTION "Code 30", ROMX, BANK[CODE_30]

INCLUDE "misc/helper.asm"

INCLUDE "engine/check_nick_errors.asm"

SECTION "Code 31", ROMX, BANK[CODE_31]

INCLUDE "tilesets/animations.asm"

INCLUDE "event/halloffame.ctf"

INCLUDE "engine/compressed_text.asm"

INCLUDE "engine/math16.asm"

SECTION "Code 32", ROMX, BANK[CODE_32]

INCLUDE "battle/anim_gfx.asm"

SECTION "Code 33", ROMX, BANK[CODE_33]

INCLUDE "event/card_flip.asm"
INCLUDE "engine/unown_puzzle.asm"
INCLUDE "event/memory_game.asm"
INCLUDE "engine/billspc.ctf"

INCLUDE "engine/stable_rng.asm"

SECTION "Code 34", ROMX, BANK[CODE_34]

INCLUDE "engine/npctrade.asm"

SECTION "Code 35", ROMX, BANK[CODE_35]

INCLUDE "engine/hp_bars_2.asm"

INCLUDE "engine/anim_hp_bar.asm"
INCLUDE "event/sacred_ash.asm"

SECTION "Code 36", ROMX, BANK[CODE_36]

INCLUDE "engine/title.asm"

INCLUDE "engine/credits.ctf"

SECTION "Code 37", ROMX, BANK[CODE_37]

INCLUDE "misc/printer_77.ctf"

PrinterHPIcon: INCBIN "gfx/misc/hp.1bpp"
PrinterLvIcon: INCBIN "gfx/misc/lv.1bpp"

INCLUDE "engine/diploma.ctf"

INCLUDE "event/judge.ctf"

QuestionMarkLZ: INCBIN "gfx/pics/questionmark/front.2bpp.lz"

INCLUDE "engine/print_time.asm"

INCLUDE "engine/relative_facing.asm"

INCLUDE "engine/sine.asm"

INCLUDE "data/predefs.asm"

INCLUDE "battle/effects/hidden_power.asm"

SECTION "Code 38", ROMX, BANK[CODE_38]

; linked, do not separate
INCLUDE "data/battle_arcade.asm"
INCLUDE "event/battle_arcade.ctf"
; end of linked section

INCLUDE "event/gold_tokens.asm"

; Another egg pic. This is shifted up a few pixels.
UnknownEggPic:: INCBIN "gfx/misc/unknown_egg.5x5.2bpp.lz"

SECTION "Code 39", ROMX, BANK[CODE_39]

; linked, do not separate
INCLUDE "event/cardgames.ctf"
INCLUDE "event/poker.ctf"
INCLUDE "event/blackjack.ctf"
; end of linked section

INCLUDE "engine/debug_menu.ctf"

SECTION "Code 40", ROMX, BANK[CODE_40]

INCLUDE "event/field_moves.asm"

SECTION "Code 41", ROMX, BANK[CODE_41]

INCLUDE "engine/fade.asm"
CopyrightRDGFX:: INCBIN "gfx/misc/copyright_rd.2bpp"

SECTION "Code 42", ROMX, BANK[CODE_42]

INCLUDE "battle/misc.asm"

SECTION "Code 43", ROMX, BANK[CODE_43]

INCLUDE "engine/font.asm"

SECTION "Code 44", ROMX, BANK[CODE_44]

; linked, do not separate
INCLUDE "engine/crystal_intro.asm"
IntroLogoGFX: INCBIN "gfx/intro/logo.2bpp.lz"
; end linked group

INCLUDE "engine/stopwatch.asm"

INCLUDE "engine/warp_connection.asm"

INCLUDE "engine/pokecenter_pc.asm"

; linked, do not separate
INCLUDE "engine/player_step.asm"
INCLUDE "engine/load_map_part.asm"
; end linked section
