func_800FE8B4 to HasEnoughMp

This commit is contained in:
Luciano Ciccariello 2023-01-22 16:02:11 +00:00
parent e7c3194395
commit ab2da33610
3 changed files with 7 additions and 6 deletions

View File

@ -1900,6 +1900,7 @@ DrawPauseMenu = 0x800F74B4;
DrawSpellMenu = 0x800F7B60;
DrawSystemMenu = 0x800F8374;
func_800FD7C0 = 0x800FD7C0;
HasEnoughMp = 0x800FE8B4;
AddHearts = 0x800FE914;
DrawHudRichter = 0x80100750;
SetPolyRect = 0x80107330;

View File

@ -114,6 +114,8 @@ typedef union {
} i;
} f32;
#include "unkstruct.h"
typedef struct {
unsigned char width;
unsigned char height;
@ -620,8 +622,6 @@ typedef struct {
/* 8003C8B4 */ void* unused13C;
} GameApi; /* size=0x140 */
#include "unkstruct.h"
extern s32 D_8003925C;
extern s32 D_8003C0EC[4];
extern s32 D_8003C0F8;

View File

@ -126,10 +126,10 @@ INCLUDE_ASM("asm/dra/nonmatchings/5D874", func_800FE3C4);
INCLUDE_ASM("asm/dra/nonmatchings/5D874", func_800FE728);
bool func_800FE8B4(s32 arg0, s32 arg1) {
if (g_playerMP.current >= arg0) {
if (arg1 != 0) {
g_playerMP.current -= arg0;
bool HasEnoughMp(s32 mpCount, bool subtractMp) {
if (g_playerMP.current >= mpCount) {
if (subtractMp != 0) {
g_playerMP.current -= mpCount;
}
return false;
}