Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some functions related to badges/ranks #282

Merged
merged 45 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
758f82c
Couple of functions used for Magic Coat
Aug 31, 2024
4ec4962
fix
Sep 1, 2024
42850f4
format
Sep 1, 2024
2d2a498
format
Sep 1, 2024
a43f9a8
test
Sep 1, 2024
95e7bcc
format
Sep 1, 2024
8c14d2d
Some hidden stairs functions
Sep 2, 2024
ceeaee6
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Sep 2, 2024
13ccebe
;
assidion2 Sep 2, 2024
325874c
rename
assidion2 Sep 2, 2024
e073de4
test
assidion2 Sep 2, 2024
5392341
format
assidion2 Sep 2, 2024
b4bb64e
format
UsernameFodder Sep 2, 2024
fb84876
Add param names to prototypes
UsernameFodder Sep 2, 2024
d1bff23
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Sep 6, 2024
caf29e4
Merge branch 'master' of https://github.com/assidion2/pmdsky-debug
assidion2 Sep 6, 2024
81ffc75
Monster initialization functions
assidion2 Sep 6, 2024
d5565bd
format
assidion2 Sep 6, 2024
06ad07a
desc
assidion2 Sep 6, 2024
529d502
Update headers/functions/overlay29.h
assidion2 Sep 7, 2024
32d31fc
Update symbols/overlay29.yml
assidion2 Sep 7, 2024
112304c
format
assidion2 Sep 7, 2024
a1d0ba7
Maaerge branch 'master' of https://github.com/assidion2/pmdsky-debug
assidion2 Sep 7, 2024
823d3e5
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Sep 10, 2024
e097d48
Maaerge branch 'master' of https://github.com/UsernameFodder/pmdsky-d…
assidion2 Sep 22, 2024
2c83d2c
Animation research + misc.
assidion2 Sep 23, 2024
2c9509e
comment length fix
assidion2 Sep 24, 2024
0a9d808
comment length fix
assidion2 Sep 24, 2024
ec37bf6
some more fields
assidion2 Sep 24, 2024
eefe0d8
some more fields
assidion2 Sep 24, 2024
5ad6a36
format
UsernameFodder Sep 25, 2024
2f9daa2
Overlay31 research
assidion2 Oct 1, 2024
93ed454
iiii:Merge branch 'master' of https://github.com/assidion2/pmdsky-debug
assidion2 Oct 1, 2024
10a3604
a
assidion2 Oct 1, 2024
d4e6351
ram
assidion2 Oct 1, 2024
6ed5505
spacing
assidion2 Oct 1, 2024
d7aedce
spacing
assidion2 Oct 1, 2024
e492266
spacing
assidion2 Oct 1, 2024
7541775
spacing
assidion2 Oct 1, 2024
77d6e68
warp zone
assidion2 Oct 1, 2024
03e28e7
heap
assidion2 Oct 1, 2024
bdc6aef
Update ram.yml
assidion2 Oct 2, 2024
59e76e4
Some functions related to badges/ranks
assidion2 Oct 8, 2024
c895a84
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Oct 8, 2024
50c29b1
Update symbols/arm9.yml
assidion2 Oct 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions headers/functions/arm9.h
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ int AtoiTagVeneer(const char* s);
void InitPreprocessorArgs(struct preprocessor_args* args);
char* SetStringAccuracy(char* s, int param_2);
char* SetStringPower(char* s, int param_2);
char* GetRankString(char* s, int rank_and_flags);
char* GetCurrentTeamNameString(char* buffer, int param_2);
char* GetBagNameString(char* buffer);
char* GetDungeonResultString(int string_number);
Expand Down Expand Up @@ -533,6 +534,8 @@ void LoadCursors(void);
void InitWindowTrailer(struct window_trailer* trailer);
void LoadAlert(void);
void PrintClearMark(int mark_id, int x, int y, undefined param_4);
void PrintBadgeMark(enum rank badge_id, int x, int y, undefined param_4);
void PrintMark(int file, int id_in_file, int x, int y, undefined param_5);
int CreateParentMenuFromStringIds(struct window_params* params, struct window_flags flags,
struct window_extra_info* window_extra_info,
struct simple_menu_id_item* menu_items);
Expand Down
32 changes: 32 additions & 0 deletions symbols/arm9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4804,6 +4804,15 @@ arm9:
NA: 0x2024428
JP: 0x2024478
description: "Note: unverified, ported from Irdkwia's notes"
- name: GetRankString
address:
EU: 0x2024D88
description: |-
Gets the string corresponding to the player's current explorer rank.

r0: [output] str
assidion2 marked this conversation as resolved.
Show resolved Hide resolved
r1: First 16 bits contain the rank, next 4 are some sort of bitflags
return: r0 if flags are 0, pointer to some static address otherwise
- name: GetCurrentTeamNameString
address:
EU: 0x2024F00
Expand Down Expand Up @@ -5211,6 +5220,29 @@ arm9:
r1: X pos (unknown units, usually ranges between 3 and 27)
r2: Y pos (unknown units, normally 14)
r3: ?
- name: PrintBadgeMark
address:
EU: 0x202A728
description: |-
Prints the specified badge mark on the screen.

The badge mark is shown when opening the menu in the overworld.

r0: Badge ID
r1: X pos (unknown units, always 3)
r2: Y pos (unknown units, always 18)
r3: ? (always 3)
- name: PrintMark
address:
EU: 0x202A750
description: |-
Prints a mark from one of the .w16 files in FONT.

r0: 0 if file is clrmark1.w16, 1 if file is clrmark2.w16, 2 if file is rankmark.w16.
r1: Mark ID in file
r2: X pos (unknown units)
r3: Y pos (unknown units)
stack[0]: ?
- name: CreateParentMenuFromStringIds
address:
EU: 0x202A8C0
Expand Down
Loading