summaryrefslogtreecommitdiff
path: root/src/shop.c
diff options
context:
space:
mode:
authorGriffinR <griffin.richards@comcast.net>2019-10-07 02:00:16 -0400
committerGriffinR <griffin.richards@comcast.net>2019-10-07 02:00:16 -0400
commit0df304d629b10b2c65a4cf358b80fd5cf2a7befa (patch)
tree462a32b0be8e63cc8f231ee234c65355be9a6d53 /src/shop.c
parent81ee8f07efeba516947e0289c5d58d58e5220332 (diff)
Document roulette.inc
Diffstat (limited to 'src/shop.c')
-rwxr-xr-xsrc/shop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shop.c b/src/shop.c
index ebbc2a847..c9cd1919a 100755
--- a/src/shop.c
+++ b/src/shop.c
@@ -38,6 +38,7 @@
#include "constants/metatile_behaviors.h"
#include "constants/rgb.h"
#include "constants/songs.h"
+#include "constants/tv.h"
EWRAM_DATA struct MartInfo gMartInfo = {0};
EWRAM_DATA struct ShopData *gShopDataPtr = NULL;
@@ -560,7 +561,7 @@ static void BuyMenuPrintPriceInList(u8 windowId, s32 item, u8 y)
{
ConvertIntToDecimalStringN(
gStringVar1,
- ItemId_GetPrice(item) >> GetPriceReduction(1),
+ ItemId_GetPrice(item) >> GetPriceReduction(POKENEWS_SLATEPORT),
STR_CONV_MODE_LEFT_ALIGN,
5);
}
@@ -932,7 +933,7 @@ static void Task_BuyMenu(u8 taskId)
if (gMartInfo.martType == MART_TYPE_NORMAL)
{
- gShopDataPtr->totalCost = (ItemId_GetPrice(itemId) >> GetPriceReduction(1));
+ gShopDataPtr->totalCost = (ItemId_GetPrice(itemId) >> GetPriceReduction(POKENEWS_SLATEPORT));
}
else
{
@@ -1011,7 +1012,7 @@ static void Task_BuyHowManyDialogueHandleInput(u8 taskId)
if (AdjustQuantityAccordingToDPadInput(&tItemCount, gShopDataPtr->maxQuantity) == TRUE)
{
- gShopDataPtr->totalCost = (ItemId_GetPrice(tItemId) >> GetPriceReduction(1)) * tItemCount;
+ gShopDataPtr->totalCost = (ItemId_GetPrice(tItemId) >> GetPriceReduction(POKENEWS_SLATEPORT)) * tItemCount;
BuyMenuPrintItemQuantityAndPrice(taskId);
}
else