Mumbo tokens enum WIP

This commit is contained in:
MaikelChan
2023-08-11 07:09:04 +02:00
parent a9463632e3
commit 9886d4aa28
4 changed files with 24 additions and 19 deletions

View File

@@ -19,7 +19,7 @@ u8* func_80321538(void){
return sMumboTokenScore;
}
bool mumboscore_get(s32 indx){
bool mumboscore_get(enum mumbotoken_e indx){
if( indx <= 0 || indx >= MUMBO_TOKEN_COUNT)
return 0;
return (sMumboTokenScore[(indx - 1) / 8] & (1 << (indx & 7))) != 0;
@@ -34,7 +34,7 @@ void mumboscore_clear(void){
}
}
void mumboscore_set(s32 indx, bool val){
void mumboscore_set(enum mumbotoken_e indx, bool val){
if( 0 < indx && indx < MUMBO_TOKEN_COUNT){
if(val)
sMumboTokenScore[(indx - 1) / 8] |= (1 << (indx & 7));