mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Decompile heal location data
This commit is contained in:
parent
5ea2f463d7
commit
6fcde15bb6
@ -1,11 +0,0 @@
|
|||||||
.include "asm/macros.inc"
|
|
||||||
.include "constants/constants.inc"
|
|
||||||
|
|
||||||
.section .rodata
|
|
||||||
.align 2, 0
|
|
||||||
|
|
||||||
gUnknown_0859F534:: @ 859F534
|
|
||||||
.incbin "baserom.gba", 0x59f534, 0x8
|
|
||||||
|
|
||||||
gUnknown_0859F53C:: @ 859F53C
|
|
||||||
.incbin "baserom.gba", 0x59f53c, 0xd0
|
|
19
graphics/unknown/unk_859f5ec.pal
Normal file
19
graphics/unknown/unk_859f5ec.pal
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
JASC-PAL
|
||||||
|
0100
|
||||||
|
16
|
||||||
|
98 156 0
|
||||||
|
255 255 255
|
||||||
|
255 255 255
|
||||||
|
230 230 246
|
||||||
|
205 205 230
|
||||||
|
180 180 222
|
||||||
|
156 156 205
|
||||||
|
131 131 197
|
||||||
|
98 98 180
|
||||||
|
74 74 164
|
||||||
|
49 49 156
|
||||||
|
0 0 0
|
||||||
|
0 0 0
|
||||||
|
0 0 0
|
||||||
|
0 0 0
|
||||||
|
0 0 0
|
18
include/heal_location.h
Normal file
18
include/heal_location.h
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#ifndef GUARD_HEAL_LOCATION_H
|
||||||
|
#define GUARD_HEAL_LOCATION_H
|
||||||
|
|
||||||
|
// Exported type declarations
|
||||||
|
|
||||||
|
struct HealLocation
|
||||||
|
{
|
||||||
|
s8 group;
|
||||||
|
s8 map;
|
||||||
|
u16 x;
|
||||||
|
u16 y;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Exported RAM declarations
|
||||||
|
|
||||||
|
// Exported ROM declarations
|
||||||
|
|
||||||
|
#endif //GUARD_HEAL_LOCATION_H
|
@ -167,6 +167,7 @@ SECTIONS {
|
|||||||
src/mail.o(.text);
|
src/mail.o(.text);
|
||||||
asm/menu_helpers.o(.text);
|
asm/menu_helpers.o(.text);
|
||||||
asm/dewford_trend.o(.text);
|
asm/dewford_trend.o(.text);
|
||||||
|
src/heal_location.o(.text);
|
||||||
asm/heal_location.o(.text);
|
asm/heal_location.o(.text);
|
||||||
asm/region_map.o(.text);
|
asm/region_map.o(.text);
|
||||||
asm/cute_sketch.o(.text);
|
asm/cute_sketch.o(.text);
|
||||||
@ -410,7 +411,7 @@ SECTIONS {
|
|||||||
data/mauville_old_man.o(.rodata);
|
data/mauville_old_man.o(.rodata);
|
||||||
src/mail.o(.rodata);
|
src/mail.o(.rodata);
|
||||||
data/menu_helpers.o(.rodata);
|
data/menu_helpers.o(.rodata);
|
||||||
data/heal_location.o(.rodata);
|
src/heal_location.o(.rodata);
|
||||||
data/region_map.o(.rodata);
|
data/region_map.o(.rodata);
|
||||||
data/cute_sketch.o(.rodata);
|
data/cute_sketch.o(.rodata);
|
||||||
src/decoration.o(.rodata);
|
src/decoration.o(.rodata);
|
||||||
|
53
src/heal_location.c
Normal file
53
src/heal_location.c
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
|
||||||
|
// Includes
|
||||||
|
#include "global.h"
|
||||||
|
#include "map_constants.h"
|
||||||
|
#include "sprite.h"
|
||||||
|
#include "heal_location.h"
|
||||||
|
|
||||||
|
#define HEAL_LOCATION(map, x, y) {MAP_GROUP_##map, MAP_ID_##map, x, y}
|
||||||
|
|
||||||
|
// Static type declarations
|
||||||
|
|
||||||
|
// Static RAM declarations
|
||||||
|
|
||||||
|
// Static ROM declarations
|
||||||
|
|
||||||
|
// .rodata
|
||||||
|
|
||||||
|
const struct {
|
||||||
|
const union AffineAnimCmd *const *const affineAnims;
|
||||||
|
void (* callback)(struct Sprite *sprite);
|
||||||
|
} gUnknown_0859F534 = {
|
||||||
|
gDummySpriteAffineAnimTable,
|
||||||
|
SpriteCallbackDummy
|
||||||
|
};
|
||||||
|
|
||||||
|
const struct HealLocation gUnknown_0859F53C[] = {
|
||||||
|
HEAL_LOCATION(LITTLEROOT_TOWN_BRENDANS_HOUSE_2F, 4, 2),
|
||||||
|
HEAL_LOCATION(LITTLEROOT_TOWN_MAYS_HOUSE_2F, 4, 2),
|
||||||
|
HEAL_LOCATION(PETALBURG_CITY, 20, 17),
|
||||||
|
HEAL_LOCATION(SLATEPORT_CITY, 19, 20),
|
||||||
|
HEAL_LOCATION(MAUVILLE_CITY, 22, 6),
|
||||||
|
HEAL_LOCATION(RUSTBORO_CITY, 16, 39),
|
||||||
|
HEAL_LOCATION(FORTREE_CITY, 5, 7),
|
||||||
|
HEAL_LOCATION(LILYCOVE_CITY, 24, 15),
|
||||||
|
HEAL_LOCATION(MOSSDEEP_CITY, 28, 17),
|
||||||
|
HEAL_LOCATION(SOOTOPOLIS_CITY, 43, 32),
|
||||||
|
HEAL_LOCATION(EVER_GRANDE_CITY, 27, 49),
|
||||||
|
HEAL_LOCATION(LITTLEROOT_TOWN, 5, 9),
|
||||||
|
HEAL_LOCATION(LITTLEROOT_TOWN, 14, 9),
|
||||||
|
HEAL_LOCATION(OLDALE_TOWN, 6, 17),
|
||||||
|
HEAL_LOCATION(DEWFORD_TOWN, 2, 11),
|
||||||
|
HEAL_LOCATION(LAVARIDGE_TOWN, 9, 7),
|
||||||
|
HEAL_LOCATION(FALLARBOR_TOWN, 14, 8),
|
||||||
|
HEAL_LOCATION(VERDANTURF_TOWN, 16, 4),
|
||||||
|
HEAL_LOCATION(PACIFIDLOG_TOWN, 8, 16),
|
||||||
|
HEAL_LOCATION(EVER_GRANDE_CITY, 18, 6),
|
||||||
|
HEAL_LOCATION(SOUTHERN_ISLAND_EXTERIOR, 15, 20),
|
||||||
|
HEAL_LOCATION(BATTLE_FRONTIER_OUTSIDE_EAST, 3, 52)
|
||||||
|
};
|
||||||
|
|
||||||
|
const u16 gUnknown_0859F5EC[] = INCBIN_U16("graphics/unknown/unk_859f5ec.gbapal");
|
||||||
|
|
||||||
|
// .text
|
Loading…
Reference in New Issue
Block a user