summaryrefslogtreecommitdiff
path: root/src/trader.c
diff options
context:
space:
mode:
authorPhlosioneer <mattmdrr2@gmail.com>2019-04-07 20:20:22 -0400
committerPhlosioneer <mattmdrr2@gmail.com>2019-04-07 20:20:22 -0400
commit50350cc2e1c26082f9d852e97e1698f7254d4145 (patch)
tree3217b352dae2be8da75ad08a8d94ddc7f81a5017 /src/trader.c
parent1360b3a477f1107785900cd0c4e73ebf018f058c (diff)
parenta4ea0ac816f799b76ac4bec1b66c569d6b684e64 (diff)
Merge branch 'master' into contest-ai-cleanup
Diffstat (limited to 'src/trader.c')
-rw-r--r--src/trader.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/trader.c b/src/trader.c
index 97bc4626f..dcf1fa076 100644
--- a/src/trader.c
+++ b/src/trader.c
@@ -142,7 +142,7 @@ void ScrSpecial_DoesPlayerHaveNoDecorations(void)
for (i = 0; i < 8; i++)
{
- if (CountDecorationCategoryN(i))
+ if (GetNumOwnedDecorationsInCategory(i))
{
gSpecialVar_Result = FALSE;
return;
@@ -157,21 +157,21 @@ void ScrSpecial_IsDecorationFull(void)
if (gDecorations[gSpecialVar_0x8004].category != gDecorations[gSpecialVar_0x8006].category
&& GetFirstEmptyDecorSlot(gDecorations[gSpecialVar_0x8004].category) == -1)
{
- sub_8127250(gStringVar2, gDecorations[gSpecialVar_0x8004].category);
+ CopyDecorationCategoryName(gStringVar2, gDecorations[gSpecialVar_0x8004].category);
gSpecialVar_Result = TRUE;
}
}
void ScrSpecial_TraderMenuGiveDecoration(void)
{
- CreateTask(sub_8127208, 0);
+ CreateTask(ShowDecorationCategoriesWindow, 0);
}
void sub_8133DA0(u8 taskId)
{
if (IsSelectedDecorInThePC() == TRUE)
{
- gSpecialVar_0x8006 = gCurDecorInventoryItems[gCurDecorationIndex];
+ gSpecialVar_0x8006 = gCurDecorationItems[gCurDecorationIndex];
StringCopy(gStringVar3, gDecorations[gSpecialVar_0x8004].name);
StringCopy(gStringVar2, gDecorations[gSpecialVar_0x8006].name);
}
@@ -183,7 +183,7 @@ void sub_8133DA0(u8 taskId)
EnableBothScriptContexts();
}
-void sub_8133E1C(u8 taskId)
+void ExitTraderMenu(u8 taskId)
{
gSpecialVar_0x8006 = 0;
DestroyTask(taskId);