Repository navigation
Croagunk Swap Shop Menu Documentation #336
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
Changes from all commits
11149e5
4289ebb
542d5d2
d5ef888
6f2179c
464d216
c91aa76
aba0f44
7747fd9
0255bc3
65b1f0b
306efca
ad3337c
3085491
17d1f88
6d6735d
7e6954b
52ac106
f8f30be
cccabbd
04414d0
b6c2231
eec2623
4a3018f
966de7f
4df0d93
f0fa197
ab055ba
2a72129
616fd27
78dbaf8
e06ac57
b7f479b
8ff8fc9
854dad6
db04379
c0e053c
3c2a597
d28c6c7
ef1e777
7bd312d
38ed07a
7f09aae
5633d31
f382d0d
422fe63
7450451
56812a1
c95b7e3
0ac4108
0f5f3ff
ffbe9d1
b1745fc
9ade5f1
32465ef
554f3f6
4256c3c
a9bfd44
358f6c4
d982a68
16bb1a0
c143da9
663a2fb
6ceafc9
b9917eb
51dcdf6
8789cb8
1b5e2be
84ba81d
af7dfb9
1c93a59
2b06856
46a0a21
4968607
10ccaa0
8353b7b
587f1da
ad40296
f76c46b
d61f707
61b74f6
f5c21f5
5717c64
47a307d
4344760
d2b450d
fb47719
02e7639
3981fdf
9d222aa
2510de2
6e8e5aa
facaa3c
5bf91f4
ba485ae
9f66ede
e05dae0
9eb924a
1b71f53
26008f5
f2cb48e
cd12926
d69f745
c2eef4c
6d14f6d
cd34182
9241e31
b176f9c
f8fca2d
e5571a3
292ce4d
a84eee6
7696f6d
6c1a1e6
b11c72e
d2ab5d9
bc31dfa
7c69f6a
a384749
d396b9d
5b636c1
0e70dac
f77a1e7
6a54bde
b075187
4eb5dda
b174bf7
4f18878
f8378a7
98eebfa
9f55be9
03ac86a
00a24b6
b98b9b2
129be4d
c832618
bef3a7e
e51668d
472b2a6
1bf9e0a
73e7771
91ad371
88494fd
bdc92de
8e8eafd
f24253d
1d5b086
ece5783
e5109d4
7e1da84
8cede1b
3a3062f
e4f5daf
4fe75b5
efbb9d2
0da535a
00b7d10
4b900df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #ifndef HEADERS_FUNCTIONS_OVERLAY21_H_ | ||
| #define HEADERS_FUNCTIONS_OVERLAY21_H_ | ||
|
|
||
| void SwapShopDialogueManager(enum swap_shared_case new_shared_case); | ||
| enum item_id GetFirstExclusivePrerequisite(enum item_id item_id); | ||
| int SwapShopEntryPoint(void); | ||
| void SwapShopDestructor(void); | ||
| int SwapShopMainManager(void); | ||
| void CloseTextboxAndSimpleMenu(void); | ||
| void SwapShopPrintCurrentGold(int window_id); | ||
|
|
||
| #endif | ||
|
HappyLappy1 marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2116,6 +2116,105 @@ enum script_routine_kind { | |
| ENUM_16_BIT(script_routine_kind); | ||
| #pragma pack(pop) | ||
|
|
||
| enum swap_shop_shared_case { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't mean to make you do extra research, sorry. I thought this was smaller/you already knew the cases. In the future if you don't know all the cases feel free to just say so and leave it as an int.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nah, I did have this information, it was just a matter of naming each case honestly. Probably better that it's done than not done. |
||
| SWAP_SHARED_CASE_TALK_WELCOME = 0, | ||
| SWAP_SHARED_CASE_TALK_CONTINUE_SWAP = 1, | ||
| SWAP_SHARED_CASE_TALK_WHAT_INFO = 2, | ||
| SWAP_SHARED_CASE_TALK_COME_AGAIN = 3, | ||
| SWAP_SHARED_CASE_CLOSE_SHOP = 4, | ||
| SWAP_SHARED_CASE_TALK_LACKING_SWAP_ITEMS = 5, | ||
| SWAP_SHARED_CASE_TALK_SWAP_BROKE = 6, | ||
| SWAP_SHARED_CASE_TALK_SWAP_POOR = 7, | ||
| // Seems to be an identical copy of SWAP_SHARED_CASE_TALK_SEND_TO_STORAGE. | ||
| // Perhaps this was once intended for trying to swap with a full storage, which is impossible by | ||
| // design. | ||
| SWAP_SHARED_CASE_UNK_0x8 = 8, | ||
| SWAP_SHARED_CASE_TALK_WHAT_ITEMS = 9, | ||
| SWAP_SHARED_CASE_TALK_VALUABLE_SWAP = 10, | ||
| SWAP_SHARED_CASE_INIT_SWAP_ITEMS_MENU = 11, | ||
| SWAP_SHARED_CASE_SWAP_ITEMS_MENU = 12, | ||
| SWAP_SHARED_CASE_RETURN_SWAP_ITEMS_MENU = 13, | ||
| SWAP_SHARED_CASE_SELECT_SWAP_ITEM_OPTIONS = 14, | ||
| SWAP_SHARED_CASE_SWAP_ITEM_GET_INFO = 15, | ||
| SWAP_SHARED_CASE_TALK_CONFIRM_SWAP = 16, | ||
| SWAP_SHARED_CASE_DO_SWAP_THEN_TALK = 17, | ||
| SWAP_SHARED_CASE_INIT_SCRIPT_ACTION_1 = 18, | ||
| SWAP_SHARED_CASE_INIT_SCRIPT_ACTION_2 = 19, | ||
| SWAP_SHARED_CASE_INIT_SCRIPT_ACTION_3 = 20, | ||
| SWAP_SHARED_CASE_TEXT_PUT_IN_CAULDRON = 21, | ||
| SWAP_SHARED_CASE_TALK_WHAT_WOAH = 22, | ||
| SWAP_SHARED_CASE_TALK_SUCCESSFUL_SWAP = 23, | ||
| SWAP_SHARED_CASE_TEXT_RECEIVE_SWAP_ITEM = 24, | ||
| SWAP_SHARED_CASE_TALK_SEND_TO_STORAGE = 25, | ||
| SWAP_SHARED_CASE_CLOSE_DIALOGUE_BOX = 26, | ||
| SWAP_SHARED_CASE_MAIN_MENU_OPTIONS = 27, | ||
| SWAP_SHARED_CASE_SWAP_CANCELLED = 28, | ||
| SWAP_SHARED_CASE_UNK_0x1D = 29, | ||
| SWAP_SHARED_CASE_CONFIRM_CHOICE = 30, | ||
| SWAP_SHARED_CASE_SWAP_DENIED = 31, | ||
| SWAP_SHARED_CASE_TALK_SUBINFO_TRADE_2 = 32, | ||
| SWAP_SHARED_CASE_SUBINFO_OPTIONS = 33, | ||
| SWAP_SHARED_CASE_TALK_SUBINFO_TRADE_1 = 34, | ||
| SWAP_SHARED_CASE_TALK_SUBINFO_LIST = 35, | ||
| SWAP_SHARED_CASE_TALK_VIEW_WHOSE_LIST = 36, | ||
| SWAP_SHARED_CASE_WHOSE_LIST_OPTIONS = 37, | ||
| SWAP_SHARED_CASE_WHOSE_LIST_SUBOPTIONS = 38, | ||
| SWAP_SHARED_CASE_CLOSE_LIST_SUBOPTIONS = 39, | ||
| SWAP_SHARED_CASE_SHOW_SPECIES_SUMMARY = 40, | ||
| SWAP_SHARED_CASE_CLOSE_SPECIES_SUMMARY = 41, | ||
| SWAP_SHARED_CASE_SHOW_SPECIES_MOVES = 42, | ||
| SWAP_SHARED_CASE_CLOSE_SPECIES_MOVES = 43, | ||
| SWAP_SHARED_CASE_SHOW_SPECIES_MOVE_INFO = 44, | ||
| SWAP_SHARED_CASE_RETURN_SPECIES_MOVES = 45, | ||
| SWAP_SHARED_CASE_SHOW_SPECIES_IQ = 46, | ||
| SWAP_SHARED_CASE_CLOSE_SPECIES_IQ = 47, | ||
| SWAP_SHARED_CASE_TALK_LIST_SPECIES_CAN_USE = 48, | ||
| SWAP_SHARED_CASE_INIT_SPECIES_LIST = 49, | ||
| SWAP_SHARED_CASE_CLOSE_SPECIES_LIST = 50, | ||
| SWAP_SHARED_CASE_SPECIES_LIST_ITEM_OPTIONS = 51, | ||
| SWAP_SHARED_CASE_SPECIES_LIST_ITEM_INFO = 52, | ||
| SWAP_SHARED_CASE_TALK_CANCEL_SPECIES_ITEM_LIST = 53, | ||
| SWAP_SHARED_CASE_TALK_SEE_OTHER_LISTS = 54, | ||
| SWAP_SHARED_CASE_SEE_OTHER_LIST_OPTIONS = 55, | ||
| SWAP_SHARED_CASE_TALK_NOBODY_TO_TRADE_WITH = 56, | ||
| SWAP_SHARED_CASE_TALK_WHICH_ITEMS_IN_RETURN = 57, | ||
| SWAP_SHARED_CASE_INIT_TRADE_AWAY_LIST = 58, | ||
| SWAP_SHARED_CASE_RESUME_TRADE_AWAY_LIST = 59, | ||
| SWAP_SHARED_CASE_CLOSE_TRADE_AWAY_ITEM_LIST = 60, | ||
| SWAP_SHARED_CASE_CLOSE_TRADE_AWAY_ITEM_LIST_INFO = 61, | ||
| SWAP_SHARED_CASE_TRADE_AWAY_LIST_ITEM_OPTIONS = 62, | ||
| SWAP_SHARED_CASE_SHOW_TRADE_AWAY_LIST_ITEM_INFO = 63, | ||
| SWAP_SHARED_CASE_TALK_CANCEL_TRADE_AWAY_ITEM_LIST = 64, | ||
| SWAP_SHARED_CASE_INIT_SWAP_SHOP = 65, | ||
| SWAP_SHARED_CASE_UNK_0x42 = 66, | ||
| SWAP_SHARED_CASE_UNK_0x43 = 67, | ||
| }; | ||
| // Used exclusively by SwapShopMainManager. | ||
| enum swap_shop_main_manager_case { | ||
| SWAP_MAIN_CASE_ENTRY_POINT = 0, // Assigned by SwapShopEntryPoint. Seems to set the script | ||
| // output case to 0, perhaps resetting it? | ||
| SWAP_MAIN_CASE_USE_SHARED_CASE = 1, // Will navigate to the shared_case-specific index. | ||
| SWAP_MAIN_CASE_CLOSE_PORTRAIT_AND_TEXTBOX = | ||
| 2, // Subsequently sets the case to SWAP_MAIN_CASE_EXIT_SWAP_SHOP | ||
| SWAP_MAIN_CASE_EXIT_SWAP_SHOP = 3, // Also sets the script output case to -1. | ||
| SWAP_MAIN_CASE_RUN_SCRIPT_ACTION = 4, // Called after each script action, and the entry point. | ||
| // Possibly enables the script to run? | ||
| SWAP_MAIN_CASE_UNK_0x5 = 5, // Always returns 1. Seems unused. | ||
| SWAP_MAIN_CASE_SET_SCRIPT_ACTION_1 = | ||
| 6, // Sets script output to 1, allowing croagunk to turn towards the cauldron. | ||
| SWAP_MAIN_CASE_SET_SCRIPT_ACTION_2 = | ||
| 7, // Sets script output to 2, causing flashing lights and earthquake effects | ||
| SWAP_MAIN_CASE_SET_SCRIPT_ACTION_3 = | ||
| 8, // Sets script output to 3, causing croagunk to turn towards the player. | ||
| }; | ||
|
|
||
| enum swap_shop_inventory_case { | ||
| SWAP_INV_CASE_SHOP_ITEMS = 0, | ||
| SWAP_INV_CASE_UNK_0x1 = 1, | ||
| SWAP_INV_CASE_SPECIES_EXC_ITEM_LIST = 2, | ||
| SWAP_INV_CASE_CHOOSE_TRADE_AWAY_ITEMS_LIST = 3, | ||
| }; | ||
|
|
||
| // These are super long, so split them out into a separate file | ||
| #include "version_dep_enums.h" | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.