Document item_case
This commit is contained in:
+5
-5
@@ -614,7 +614,7 @@ static void BuyMenuPrintPriceInList(u8 windowId, u32 item, u8 y)
|
||||
|
||||
if (item != INDEX_CANCEL)
|
||||
{
|
||||
ConvertIntToDecimalStringN(gStringVar1, itemid_get_market_price(item), 0, 4);
|
||||
ConvertIntToDecimalStringN(gStringVar1, ItemId_GetPrice(item), 0, 4);
|
||||
x = 4 - StringLength(gStringVar1);
|
||||
loc = gStringVar4;
|
||||
while (x-- != 0)
|
||||
@@ -902,7 +902,7 @@ static void Task_BuyMenu(u8 taskId)
|
||||
BuyMenuRemoveScrollIndicatorArrows();
|
||||
BuyMenuPrintCursor(tListTaskId, 2);
|
||||
RecolorItemDescriptionBox(1);
|
||||
gShopData.itemPrice = itemid_get_market_price(itemId);
|
||||
gShopData.itemPrice = ItemId_GetPrice(itemId);
|
||||
if (!IsEnoughMoney(&gSaveBlock1Ptr->money, gShopData.itemPrice))
|
||||
{
|
||||
BuyMenuDisplayMessage(taskId, gText_YouDontHaveMoney, BuyMenuReturnToItemList);
|
||||
@@ -931,7 +931,7 @@ static void Task_BuyHowManyDialogueInit(u8 taskId)
|
||||
BuyMenuQuantityBoxNormalBorder(3, 0);
|
||||
BuyMenuPrintItemQuantityAndPrice(taskId);
|
||||
ScheduleBgCopyTilemapToVram(0);
|
||||
maxQuantity = GetMoney(&gSaveBlock1Ptr->money) / itemid_get_market_price(tItemId);
|
||||
maxQuantity = GetMoney(&gSaveBlock1Ptr->money) / ItemId_GetPrice(tItemId);
|
||||
if (maxQuantity > 99)
|
||||
gShopData.maxQuantity = 99;
|
||||
else
|
||||
@@ -949,7 +949,7 @@ static void Task_BuyHowManyDialogueHandleInput(u8 taskId)
|
||||
|
||||
if (AdjustQuantityAccordingToDPadInput(&tItemCount, gShopData.maxQuantity) == TRUE)
|
||||
{
|
||||
gShopData.itemPrice = itemid_get_market_price(tItemId) * tItemCount;
|
||||
gShopData.itemPrice = ItemId_GetPrice(tItemId) * tItemCount;
|
||||
BuyMenuPrintItemQuantityAndPrice(taskId);
|
||||
}
|
||||
else
|
||||
@@ -1102,7 +1102,7 @@ void RecordItemPurchase(u16 item, u16 quantity, u8 a2)
|
||||
|
||||
if (history->unk0 < 999999)
|
||||
{
|
||||
history->unk0 += (itemid_get_market_price(item) >> (a2 - 1)) * quantity;
|
||||
history->unk0 += (ItemId_GetPrice(item) >> (a2 - 1)) * quantity;
|
||||
if (history->unk0 > 999999)
|
||||
history->unk0 = 999999;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user