add reset func for EnBats actor (#724)

This commit is contained in:
Archez 2024-06-28 11:01:00 -04:00 committed by GitHub
parent da76b32433
commit 36f31463f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,7 @@ void EnBat_Init(Actor* thisx, PlayState* play);
void EnBat_Destroy(Actor* thisx, PlayState* play);
void EnBat_Update(Actor* thisx, PlayState* play);
void EnBat_Draw(Actor* thisx, PlayState* play);
void EnBat_Reset(void);
s32 EnBat_IsGraveyardOnSecondDay(PlayState* play);
void EnBat_SetupPerch(EnBat* this);
@ -39,6 +40,7 @@ ActorInit En_Bat_InitVars = {
/**/ EnBat_Destroy,
/**/ EnBat_Update,
/**/ EnBat_Draw,
/**/ EnBat_Reset,
};
static ColliderSphereInit sSphereInit = {
@ -560,3 +562,8 @@ void EnBat_Draw(Actor* thisx, PlayState* play) {
this->drawDmgEffFrozenSteamScale, this->drawDmgEffAlpha, this->drawDmgEffType);
}
}
void EnBat_Reset(void) {
sNumberAttacking = 0;
sAlreadySpawned = false;
}