Skip to content

Commit

Permalink
Format and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostbyte0x70 committed Nov 13, 2023
1 parent b29cdb5 commit 76fc2ca
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion headers/data/overlay10.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ extern int16_t MIRACLE_CHEST_EXP_BOOST;
extern int16_t WONDER_CHEST_EXP_BOOST;
extern int16_t SPAWN_CAP_WITH_MONSTER_HOUSE;
extern int16_t POISON_DAMAGE_COOLDOWN;
extern int16_t ITEM_HIT_CHANCE;
extern int16_t LEECH_SEED_DAMAGE_COOLDOWN;
extern int16_t ITEM_HIT_CHANCE;
extern int16_t GEO_PEBBLE_DAMAGE;
extern int16_t GRAVELEROCK_DAMAGE;
extern int16_t RARE_FOSSIL_DAMAGE;
Expand Down
3 changes: 1 addition & 2 deletions headers/types/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,6 @@ struct track_data {
};
ASSERT_SIZE(struct track_data, 32); // Exact size hasn't been confirmed


// Data about a wavi container
struct wavi_data {
undefined field_0x0;
Expand All @@ -1372,7 +1371,7 @@ struct wavi_data {
undefined field_0x5;
undefined field_0x6;
undefined field_0x7;
int16_t num_entries; // 0x8: Number of entries in the container
int16_t num_entries; // 0x8: Number of entries in the container
undefined field_0xA;
undefined field_0xB;
undefined field_0xC;
Expand Down
22 changes: 12 additions & 10 deletions symbols/arm7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ arm7:
r0: Flag to clear
return: Previous value of the Interrupt Enable flags
- name: GetCurrentPlaybackTime
address:
EU-WRAM: 0x37FD21C
NA-WRAM: 0x37FD21C
description: |-
Returns the time that the current song has been playing for. Might have a more generic purpose.
The time is obtained using a couple of RAM counters and the hardware timers for additional precision.
The game uses this value to know when a given note should stop being played. It doesn't seem to be used to keep track of the
current time instant within the song.
- name: ClearIrqFlag
address:
EU: 0x2385ED4
Expand All @@ -127,16 +137,6 @@ arm7:
Copy of the ARM9 function. See arm9.yml for more information.
return: Old value of cpsr & 0x80 (0x80 if interrupts were disabled, 0x0 if they were already enabled)
- name: GetCurrentPlaybackTime
address:
EU-WRAM: 0x37FD21C
NA-WRAM: 0x37FD21C
description: |-
Returns the time that the current song has been playing for. Might have a more generic purpose.
The time is obtained using a couple of RAM counters and the hardware timers for additional precision.
The game uses this value to know when a given note should stop being played. It doesn't seem to be used to keep track of the
current time instant within the song.
- name: EnableIrqFlag
address:
EU: 0x2385EE8
Expand Down Expand Up @@ -197,6 +197,8 @@ arm7:
JP-WRAM: 0x37FDD58
description: |-
Copy of the ARM9 function. See arm9.yml for more information.
return: cpsr & 0x1f (the cpsr mode bits M4-M0)
- name: __divsi3
address:
EU: 0x238EDB0
Expand Down
13 changes: 7 additions & 6 deletions symbols/overlay10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,13 @@ overlay10:
NA: 0x2
JP: 0x2
description: The number of turns between passive poison damage.
- name: LEECH_SEED_DAMAGE_COOLDOWN
address:
EU: 0x22C5004
NA: 0x22C46AC
length:
NA: 0x2
description: The number of turns between leech seed health drain.
- name: ITEM_HIT_CHANCE
address:
EU: 0x22C5008
Expand All @@ -936,12 +943,6 @@ overlay10:
NA: 0x2
JP: 0x2
description: Chance of a hurled item hitting the target (90%).
- name: LEECH_SEED_DAMAGE_COOLDOWN
address:
NA: 0x22C46AC
length:
NA: 0x2
description: The number of turns between leech seed health drain.
- name: GEO_PEBBLE_DAMAGE
address:
EU: 0x22C500C
Expand Down

0 comments on commit 76fc2ca

Please sign in to comment.