mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
rename rng.c to random.c and rom4.c to overworld.c
This commit is contained in:
parent
fd75493bc6
commit
00896cb3b5
@ -1,5 +1,5 @@
|
|||||||
#ifndef GUARD_RNG_H
|
#ifndef GUARD_RANDOM_H
|
||||||
#define GUARD_RNG_H
|
#define GUARD_RANDOM_H
|
||||||
|
|
||||||
extern u32 gRngValue;
|
extern u32 gRngValue;
|
||||||
extern u32 gRng2Value;
|
extern u32 gRng2Value;
|
||||||
@ -15,4 +15,4 @@ u16 Random2(void);
|
|||||||
void SeedRng(u16 seed);
|
void SeedRng(u16 seed);
|
||||||
void SeedRng2(u16 seed);
|
void SeedRng2(u16 seed);
|
||||||
|
|
||||||
#endif // GUARD_RNG_H
|
#endif // GUARD_RANDOM_H
|
@ -74,7 +74,7 @@ SECTIONS {
|
|||||||
src/pokemon_3.o(.text);
|
src/pokemon_3.o(.text);
|
||||||
asm/pokemon_3.o(.text);
|
asm/pokemon_3.o(.text);
|
||||||
src/trig.o(.text);
|
src/trig.o(.text);
|
||||||
src/rng.o(.text);
|
src/random.o(.text);
|
||||||
src/util.o(.text);
|
src/util.o(.text);
|
||||||
src/blend_palette.o(.text);
|
src/blend_palette.o(.text);
|
||||||
src/daycare.o(.text);
|
src/daycare.o(.text);
|
||||||
@ -87,7 +87,7 @@ SECTIONS {
|
|||||||
src/berry_blender.o(.text);
|
src/berry_blender.o(.text);
|
||||||
src/play_time.o(.text);
|
src/play_time.o(.text);
|
||||||
src/new_game.o(.text);
|
src/new_game.o(.text);
|
||||||
asm/rom4.o(.text);
|
asm/overworld.o(.text);
|
||||||
asm/fieldmap.o(.text);
|
asm/fieldmap.o(.text);
|
||||||
src/metatile_behavior.o(.text);
|
src/metatile_behavior.o(.text);
|
||||||
asm/field_camera.o(.text);
|
asm/field_camera.o(.text);
|
||||||
@ -349,7 +349,7 @@ SECTIONS {
|
|||||||
data/trade.o(.rodata);
|
data/trade.o(.rodata);
|
||||||
src/berry_blender.o(.rodata);
|
src/berry_blender.o(.rodata);
|
||||||
src/new_game.o(.rodata);
|
src/new_game.o(.rodata);
|
||||||
data/rom4.o(.rodata);
|
data/overworld.o(.rodata);
|
||||||
data/tilesets.o(.rodata);
|
data/tilesets.o(.rodata);
|
||||||
data/maps.o(.rodata);
|
data/maps.o(.rodata);
|
||||||
data/fieldmap.o(.rodata);
|
data/fieldmap.o(.rodata);
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
#include "m4a.h"
|
#include "m4a.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "songs.h"
|
#include "songs.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "battle_message.h"
|
#include "battle_message.h"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "battle.h"
|
#include "battle.h"
|
||||||
#include "species.h"
|
#include "species.h"
|
||||||
#include "abilities.h"
|
#include "abilities.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "item.h"
|
#include "item.h"
|
||||||
#include "battle_move_effects.h"
|
#include "battle_move_effects.h"
|
||||||
#include "moves.h"
|
#include "moves.h"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "moves.h"
|
#include "moves.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "species.h"
|
#include "species.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "items.h"
|
#include "items.h"
|
||||||
#include "pokemon_item_effects.h"
|
#include "pokemon_item_effects.h"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
#include "bg.h"
|
#include "bg.h"
|
||||||
#include "reshow_battle_screen.h"
|
#include "reshow_battle_screen.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "pokeball.h"
|
#include "pokeball.h"
|
||||||
#include "data2.h"
|
#include "data2.h"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
#include "bg.h"
|
#include "bg.h"
|
||||||
#include "reshow_battle_screen.h"
|
#include "reshow_battle_screen.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "pokeball.h"
|
#include "pokeball.h"
|
||||||
#include "data2.h"
|
#include "data2.h"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
#include "bg.h"
|
#include "bg.h"
|
||||||
#include "reshow_battle_screen.h"
|
#include "reshow_battle_screen.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "pokeball.h"
|
#include "pokeball.h"
|
||||||
#include "data2.h"
|
#include "data2.h"
|
||||||
#include "party_menu.h"
|
#include "party_menu.h"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "battle_interface.h"
|
#include "battle_interface.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "malloc.h"
|
#include "malloc.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "moves.h"
|
#include "moves.h"
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "calculate_base_damage.h"
|
#include "calculate_base_damage.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "battle_controllers.h"
|
#include "battle_controllers.h"
|
||||||
#include "battle_interface.h"
|
#include "battle_interface.h"
|
||||||
#include "species.h"
|
#include "species.h"
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "battle_move_effects.h"
|
#include "battle_move_effects.h"
|
||||||
#include "battle_scripts.h"
|
#include "battle_scripts.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
#include "battle_message.h"
|
#include "battle_message.h"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
#include "abilities.h"
|
#include "abilities.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "battle_scripts.h"
|
#include "battle_scripts.h"
|
||||||
|
|
||||||
extern struct BattlePokemon gBattleMons[BATTLE_BANKS_COUNT];
|
extern struct BattlePokemon gBattleMons[BATTLE_BANKS_COUNT];
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "item.h"
|
#include "item.h"
|
||||||
#include "items.h"
|
#include "items.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
#include "fieldmap.h"
|
#include "fieldmap.h"
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "items.h"
|
#include "items.h"
|
||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
#include "international_string_util.h"
|
#include "international_string_util.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "pokeblock.h"
|
#include "pokeblock.h"
|
||||||
#include "trig.h"
|
#include "trig.h"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include "mail.h"
|
#include "mail.h"
|
||||||
#include "pokemon_storage_system.h"
|
#include "pokemon_storage_system.h"
|
||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "moves.h"
|
#include "moves.h"
|
||||||
#include "egg_hatch.h"
|
#include "egg_hatch.h"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "trig.h"
|
#include "trig.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "malloc.h"
|
#include "malloc.h"
|
||||||
#include "dma3.h"
|
#include "dma3.h"
|
||||||
#include "gpu_regs.h"
|
#include "gpu_regs.h"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "evolution_graphics.h"
|
#include "evolution_graphics.h"
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
#include "trig.h"
|
#include "trig.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "decompress.h"
|
#include "decompress.h"
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "malloc.h"
|
#include "malloc.h"
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
#include "overworld.h"
|
#include "overworld.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "event_scripts.h"
|
#include "event_scripts.h"
|
||||||
#include "berry.h"
|
#include "berry.h"
|
||||||
#include "palette.h"
|
#include "palette.h"
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "international_string_util.h"
|
#include "international_string_util.h"
|
||||||
#include "unknown_task.h"
|
#include "unknown_task.h"
|
||||||
#include "trig.h"
|
#include "trig.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
|
|
||||||
struct HallofFameMon
|
struct HallofFameMon
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include "rom6.h"
|
#include "rom6.h"
|
||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
#include "script.h"
|
#include "script.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
#include "item.h"
|
#include "item.h"
|
||||||
#include "items.h"
|
#include "items.h"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "load_save.h"
|
#include "load_save.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
|
|
||||||
extern void* gUnknown_0203CF5C;
|
extern void* gUnknown_0203CF5C;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "items.h"
|
#include "items.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "species.h"
|
#include "species.h"
|
||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "m4a.h"
|
#include "m4a.h"
|
||||||
#include "rtc.h"
|
#include "rtc.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "dma3.h"
|
#include "dma3.h"
|
||||||
#include "gba/flash_internal.h"
|
#include "gba/flash_internal.h"
|
||||||
#include "battle.h"
|
#include "battle.h"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "new_game.h"
|
#include "new_game.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "roamer.h"
|
#include "roamer.h"
|
||||||
#include "pokemon_size_record.h"
|
#include "pokemon_size_record.h"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "items.h"
|
#include "items.h"
|
||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "battle.h"
|
#include "battle.h"
|
||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
#include "species.h"
|
#include "species.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "species.h"
|
#include "species.h"
|
||||||
#include "link.h"
|
#include "link.h"
|
||||||
#include "hold_effects.h"
|
#include "hold_effects.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "trainer_classes.h"
|
#include "trainer_classes.h"
|
||||||
#include "trainer_ids.h"
|
#include "trainer_ids.h"
|
||||||
#include "songs.h"
|
#include "songs.h"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
|
|
||||||
// The number 1103515245 comes from the example implementation of rand and srand
|
// The number 1103515245 comes from the example implementation of rand and srand
|
||||||
// in the ISO C standard.
|
// in the ISO C standard.
|
@ -3,7 +3,7 @@
|
|||||||
#include "recorded_battle.h"
|
#include "recorded_battle.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
#include "link.h"
|
#include "link.h"
|
||||||
#include "string_util.h"
|
#include "string_util.h"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "roamer.h"
|
#include "roamer.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "species.h"
|
#include "species.h"
|
||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "party_menu.h"
|
#include "party_menu.h"
|
||||||
#include "pokemon_3.h"
|
#include "pokemon_3.h"
|
||||||
#include "pokemon_storage_system.h"
|
#include "pokemon_storage_system.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "overworld.h"
|
#include "overworld.h"
|
||||||
#include "rtc.h"
|
#include "rtc.h"
|
||||||
#include "script.h"
|
#include "script.h"
|
||||||
|
2
src/tv.c
2
src/tv.c
@ -4,7 +4,7 @@
|
|||||||
#include "rtc.h"
|
#include "rtc.h"
|
||||||
#include "overworld.h"
|
#include "overworld.h"
|
||||||
#include "map_constants.h"
|
#include "map_constants.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "event_data.h"
|
#include "event_data.h"
|
||||||
#include "fieldmap.h"
|
#include "fieldmap.h"
|
||||||
#include "field_camera.h"
|
#include "field_camera.h"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "species.h"
|
#include "species.h"
|
||||||
#include "metatile_behavior.h"
|
#include "metatile_behavior.h"
|
||||||
#include "fieldmap.h"
|
#include "fieldmap.h"
|
||||||
#include "rng.h"
|
#include "random.h"
|
||||||
#include "map_constants.h"
|
#include "map_constants.h"
|
||||||
#include "field_player_avatar.h"
|
#include "field_player_avatar.h"
|
||||||
#include "abilities.h"
|
#include "abilities.h"
|
||||||
|
52
sym_bss.txt
52
sym_bss.txt
@ -2,32 +2,32 @@
|
|||||||
.include "src/malloc.o"
|
.include "src/malloc.o"
|
||||||
.include "src/dma3_manager.o"
|
.include "src/dma3_manager.o"
|
||||||
.include "src/gpu_regs.o"
|
.include "src/gpu_regs.o"
|
||||||
.include "src/bg.o"
|
.include "src/bg.o"
|
||||||
.include "src/text.o"
|
.include "src/text.o"
|
||||||
.include "src/sprite.o"
|
.include "src/sprite.o"
|
||||||
.include "src/link.o"
|
.include "src/link.o"
|
||||||
.include "src/rtc.o"
|
.include "src/rtc.o"
|
||||||
.include "src/main_menu.o"
|
.include "src/main_menu.o"
|
||||||
.include "src/battle_1.o"
|
.include "src/battle_1.o"
|
||||||
.include "src/egg_hatch.o"
|
.include "src/egg_hatch.o"
|
||||||
.include "src/berry_blender.o"
|
.include "src/berry_blender.o"
|
||||||
.include "src/play_time.o"
|
.include "src/play_time.o"
|
||||||
.include "src/rom4.o"
|
.include "src/overworld.o"
|
||||||
.include "src/field_camera.o"
|
.include "src/field_camera.o"
|
||||||
.include "src/script.o"
|
.include "src/script.o"
|
||||||
.include "src/scrcmd.o"
|
.include "src/scrcmd.o"
|
||||||
.include "src/tileset_anims.o"
|
.include "src/tileset_anims.o"
|
||||||
.include "src/palette.o"
|
.include "src/palette.o"
|
||||||
.include "src/sound.o"
|
.include "src/sound.o"
|
||||||
.include "src/field_screen.o"
|
.include "src/field_screen.o"
|
||||||
.include "src/field_effect.o"
|
.include "src/field_effect.o"
|
||||||
.include "src/pokemon_storage_system.o"
|
.include "src/pokemon_storage_system.o"
|
||||||
.include "src/fldeff_cut.o"
|
.include "src/fldeff_cut.o"
|
||||||
.include "src/script_menu.o"
|
.include "src/script_menu.o"
|
||||||
.include "src/record_mixing.o"
|
.include "src/record_mixing.o"
|
||||||
.include "src/tv.o"
|
.include "src/tv.o"
|
||||||
|
|
||||||
.space 1 @ TODO: define this u32 in mauville_old_man
|
.space 1 @ TODO: define this u32 in mauville_old_man
|
||||||
gUnknown_03001178: @ 3001178
|
gUnknown_03001178: @ 3001178
|
||||||
.space 0x4
|
.space 0x4
|
||||||
|
|
||||||
@ -54,9 +54,9 @@ gUnknown_030011F6: @ 30011F6
|
|||||||
gUnknown_030011F7: @ 30011F7
|
gUnknown_030011F7: @ 30011F7
|
||||||
.space 0x1
|
.space 0x1
|
||||||
|
|
||||||
.include "src/starter_choose.o"
|
.include "src/starter_choose.o"
|
||||||
|
|
||||||
.align 0x2
|
.align 0x2
|
||||||
|
|
||||||
gUnknown_030011FC: @ 30011FC
|
gUnknown_030011FC: @ 30011FC
|
||||||
.space 0x2
|
.space 0x2
|
||||||
@ -138,7 +138,7 @@ gUnknown_03001298: @ 3001298
|
|||||||
gUnknown_030012A8: @ 30012A8
|
gUnknown_030012A8: @ 30012A8
|
||||||
.space 0x10
|
.space 0x10
|
||||||
|
|
||||||
.include "src/berry_fix_program.o"
|
.include "src/berry_fix_program.o"
|
||||||
|
|
||||||
gUnknown_030012BC: @ 30012BC
|
gUnknown_030012BC: @ 30012BC
|
||||||
.space 0x4
|
.space 0x4
|
||||||
|
@ -543,7 +543,7 @@ gUnknown_0202499C: @ 202499C
|
|||||||
gUnknown_020249B4: @ 20249B4
|
gUnknown_020249B4: @ 20249B4
|
||||||
.space 0x8
|
.space 0x8
|
||||||
|
|
||||||
.include "src/rng.o"
|
.include "src/random.o"
|
||||||
.include "src/daycare.o"
|
.include "src/daycare.o"
|
||||||
.include "src/load_save.o"
|
.include "src/load_save.o"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user