Changed 999999 in MaxMoney to MAX_MONEY constant (#3015)

This commit is contained in:
psf 2023-05-20 05:25:59 -07:00 committed by GitHub
parent 29d2d4202e
commit 9506b205e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,8 @@
#ifndef GUARD_MONEY_H #ifndef GUARD_MONEY_H
#define GUARD_MONEY_H #define GUARD_MONEY_H
#define MAX_MONEY 999999
u32 GetMoney(u32 *moneyPtr); u32 GetMoney(u32 *moneyPtr);
void SetMoney(u32 *moneyPtr, u32 newValue); void SetMoney(u32 *moneyPtr, u32 newValue);
bool8 IsEnoughMoney(u32 *moneyPtr, u32 cost); bool8 IsEnoughMoney(u32 *moneyPtr, u32 cost);

View File

@ -2758,7 +2758,7 @@ static void DebugAction_Give_Pokemon_ComplexCreateMon(u8 taskId) //https://githu
static void DebugAction_Give_MaxMoney(u8 taskId) static void DebugAction_Give_MaxMoney(u8 taskId)
{ {
SetMoney(&gSaveBlock1Ptr->money, 999999); SetMoney(&gSaveBlock1Ptr->money, MAX_MONEY);
} }
static void DebugAction_Give_MaxCoins(u8 taskId) static void DebugAction_Give_MaxCoins(u8 taskId)

View File

@ -10,8 +10,6 @@
#include "strings.h" #include "strings.h"
#include "decompress.h" #include "decompress.h"
#define MAX_MONEY 999999
EWRAM_DATA static u8 sMoneyBoxWindowId = 0; EWRAM_DATA static u8 sMoneyBoxWindowId = 0;
EWRAM_DATA static u8 sMoneyLabelSpriteId = 0; EWRAM_DATA static u8 sMoneyLabelSpriteId = 0;