Document roulette.inc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user