mirror of
https://github.com/pret/pokeemerald.git
synced 2026-10-23 09:39:20 -05:00
Merge branch 'master' of https://github.com/DizzyEggg/pokeemerald into item_expansion
This commit is contained in:
@@ -11,16 +11,16 @@
|
||||
#define HEAL_LOCATION_LILYCOVE_CITY 8
|
||||
#define HEAL_LOCATION_MOSSDEEP_CITY 9
|
||||
#define HEAL_LOCATION_SOOTOPOLIS_CITY 10
|
||||
#define HEAL_LOCATION_EVER_GRANDE_CITY_1 11
|
||||
#define HEAL_LOCATION_LITTLEROOT_TOWN_1 12
|
||||
#define HEAL_LOCATION_LITTLEROOT_TOWN_2 13
|
||||
#define HEAL_LOCATION_EVER_GRANDE_CITY 11
|
||||
#define HEAL_LOCATION_LITTLEROOT_TOWN_BRENDANS_HOUSE 12
|
||||
#define HEAL_LOCATION_LITTLEROOT_TOWN_MAYS_HOUSE 13
|
||||
#define HEAL_LOCATION_OLDALE_TOWN 14
|
||||
#define HEAL_LOCATION_DEWFORD_TOWN 15
|
||||
#define HEAL_LOCATION_LAVARIDGE_TOWN 16
|
||||
#define HEAL_LOCATION_FALLARBOR_TOWN 17
|
||||
#define HEAL_LOCATION_VERDANTURF_TOWN 18
|
||||
#define HEAL_LOCATION_PACIFIDLOG_TOWN 19
|
||||
#define HEAL_LOCATION_EVER_GRANDE_CITY_2 20
|
||||
#define HEAL_LOCATION_EVER_GRANDE_CITY_POKEMON_LEAGUE 20
|
||||
#define HEAL_LOCATION_SOUTHERN_ISLAND_EXTERIOR 21
|
||||
#define HEAL_LOCATION_BATTLE_FRONTIER_OUTSIDE_EAST 22
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#ifndef GUARD_CONSTANTS_MAP_TYPES_H
|
||||
#define GUARD_CONSTANTS_MAP_TYPES_H
|
||||
|
||||
#define MAP_TYPE_UNUSED_1 0
|
||||
#define MAP_TYPE_NONE 0
|
||||
#define MAP_TYPE_TOWN 1
|
||||
#define MAP_TYPE_CITY 2
|
||||
#define MAP_TYPE_ROUTE 3
|
||||
#define MAP_TYPE_UNDERGROUND 4
|
||||
#define MAP_TYPE_UNDERWATER 5
|
||||
#define MAP_TYPE_OCEAN_ROUTE 6
|
||||
#define MAP_TYPE_UNUSED_2 7
|
||||
#define MAP_TYPE_UNKNOWN 7 // Not used by any map.
|
||||
#define MAP_TYPE_INDOOR 8
|
||||
#define MAP_TYPE_SECRET_BASE 9
|
||||
|
||||
|
||||
9
include/constants/trainer_types.h
Normal file
9
include/constants/trainer_types.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef GUARD_CONSTANTS_TRAINER_TYPES_H
|
||||
#define GUARD_CONSTANTS_TRAINER_TYPES_H
|
||||
|
||||
#define TRAINER_TYPE_NONE 0
|
||||
#define TRAINER_TYPE_NORMAL 1
|
||||
#define TRAINER_TYPE_SEE_ALL_DIRECTIONS 2
|
||||
#define TRAINER_TYPE_BURIED 3
|
||||
|
||||
#endif // GUARD_CONSTANTS_TRAINER_TYPES_H
|
||||
@@ -144,9 +144,9 @@ struct MapHeader
|
||||
};
|
||||
|
||||
// Flags for gMapHeader.flags, as defined in the map_header_flags macro
|
||||
#define MAP_ALLOW_BIKE (1 << 0)
|
||||
#define MAP_ALLOW_ESCAPE_ROPE (1 << 1)
|
||||
#define MAP_ALLOW_RUN (1 << 2)
|
||||
#define MAP_ALLOW_CYCLING (1 << 0)
|
||||
#define MAP_ALLOW_ESCAPING (1 << 1) // Escape Rope and Dig
|
||||
#define MAP_ALLOW_RUNNING (1 << 2)
|
||||
#define MAP_SHOW_MAP_NAME (1 << 3)
|
||||
#define UNUSED_MAP_FLAGS (1 << 4 | 1 << 5 | 1 << 6 | 1 << 7)
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ void ItemUseInBattle_PPRecovery(u8);
|
||||
void ItemUseInBattle_Escape(u8);
|
||||
void ItemUseInBattle_EnigmaBerry(u8);
|
||||
void Task_UseDigEscapeRopeOnField(u8 taskId);
|
||||
u8 CanUseEscapeRopeOnCurrMap(void);
|
||||
u8 CanUseDigOrEscapeRopeOnCurMap(void);
|
||||
u8 CheckIfItemIsTMHMOrEvolutionStone(u16 itemId);
|
||||
|
||||
#endif // GUARD_ITEM_USE_H
|
||||
|
||||
@@ -90,13 +90,8 @@
|
||||
|
||||
#define RFU_MBOOT_DOWNLOADER_SERIAL_NO 0x0000 // The game serial number of the multi-boot downloader (programs that boot without a Game Pak)
|
||||
|
||||
#if LIBRFU_VERSION >= 1028
|
||||
#define RFU_API_BUFF_SIZE_RAM 0x0e8c // Necessary size for buffer specified by rfu_initializeAPI (fast communication version that operates the library SIO interrupt routines in RAM)
|
||||
#define RFU_API_BUFF_SIZE_ROM 0x052c // Necessary size for buffer specified by rfu_initializeAPI (fast communication version that operates the library SIO interrupt routines in ROM)
|
||||
#else
|
||||
#define RFU_API_BUFF_SIZE_RAM 0x0e64 // Necessary size for buffer specified by rfu_initializeAPI (fast communication version that operates the library SIO interrupt routines in RAM)
|
||||
#define RFU_API_BUFF_SIZE_ROM 0x0504 // Necessary size for buffer specified by rfu_initializeAPI (fast communication version that operates the library SIO interrupt routines in ROM)
|
||||
#endif
|
||||
|
||||
#define RFU_CHILD_MAX 4 // Maximum number of slaves that can be connected to one parent device
|
||||
|
||||
@@ -376,8 +371,7 @@ struct NIComm
|
||||
u16 state; // Communication state of slot
|
||||
u16 failCounter; // Count of failed transmissions/receptions (Count is increased when transmission/reception of data does not succeed within 1PF=16.7 ms)
|
||||
const u8 *now_p[WINDOW_COUNT]; // Address of current send/receive (The data is divided into WINDOW_COUNT blocks and sent in payloadSize units.)
|
||||
// remainSize is u32 in SDK. This is a hack to match ASM
|
||||
s32 remainSize; // Size of remaining communication data
|
||||
u32 remainSize; // Size of remaining communication data
|
||||
u16 errorCode; // Error code
|
||||
u8 bmSlot; // Expresses the current communication slot in bits
|
||||
// (When sending from the Master, because multiple slaves can be specified with bmSlot, communications are terminated based on the failCounter for each child device)
|
||||
|
||||
Reference in New Issue
Block a user