mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Changed 999999 in MaxMoney to MAX_MONEY constant (#3015)
This commit is contained in:
parent
29d2d4202e
commit
9506b205e6
@ -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);
|
||||||
|
@ -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)
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user