mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
Document Timers (#1412)
* Document Timers, First Draft * some progress * more timer docs * cleanup * small cleanup * more cleanup * comments * more cleanup * extra comment * more docs * brackets * PR Suggestions * cleanup, missed some * more suggestions * more PR Suggestions * small change * environmental
This commit is contained in:
parent
cc2409606e
commit
40639e698d
32 changed files with 550 additions and 435 deletions
|
@ -278,7 +278,7 @@ void EnTa_Destroy(Actor* thisx, PlayState* play) {
|
|||
|
||||
if (this->actor.params != ENTA_IN_KAKARIKO && this->actor.params != ENTA_RETURNED_FROM_KAKARIKO &&
|
||||
play->sceneId == SCENE_SOUKO) {
|
||||
gSaveContext.timer1State = 0;
|
||||
gSaveContext.timerState = TIMER_STATE_OFF;
|
||||
}
|
||||
|
||||
if (this->stateFlags & TALON_STATE_FLAG_RESTORE_BGM_ON_DESTROY) {
|
||||
|
@ -756,7 +756,7 @@ void EnTa_RunCuccoGame(EnTa* this, PlayState* play) {
|
|||
switch (EnTa_GetSuperCuccosCount(this, play)) {
|
||||
case 1:
|
||||
// Last cucco found, end the game
|
||||
gSaveContext.timer1State = 0;
|
||||
gSaveContext.timerState = TIMER_STATE_OFF;
|
||||
func_8002DF54(play, &this->actor, 1);
|
||||
|
||||
Message_StartTextbox(play, 0x2084, &this->actor);
|
||||
|
@ -796,15 +796,15 @@ void EnTa_RunCuccoGame(EnTa* this, PlayState* play) {
|
|||
}
|
||||
}
|
||||
|
||||
if (gSaveContext.timer1Value == 10) {
|
||||
if (gSaveContext.timerSeconds == 10) {
|
||||
Audio_SetFastTempoForTimedMinigame();
|
||||
}
|
||||
|
||||
if (gSaveContext.timer1Value == 0 && !Play_InCsMode(play)) {
|
||||
if ((gSaveContext.timerSeconds == 0) && !Play_InCsMode(play)) {
|
||||
SEQCMD_STOP_SEQUENCE(SEQ_PLAYER_BGM_MAIN, 0);
|
||||
this->stateFlags &= ~TALON_STATE_FLAG_RESTORE_BGM_ON_DESTROY;
|
||||
func_80078884(NA_SE_SY_FOUND);
|
||||
gSaveContext.timer1State = 0;
|
||||
gSaveContext.timerState = TIMER_STATE_OFF;
|
||||
func_8002DF54(play, &this->actor, 1);
|
||||
|
||||
// Time's up text
|
||||
|
@ -881,7 +881,7 @@ void EnTa_StartingCuccoGame3(EnTa* this, PlayState* play) {
|
|||
Animation_GetLastFrame(&gTalonSitHandsUpAnim), ANIMMODE_ONCE, 0.0f);
|
||||
this->timer = 50;
|
||||
|
||||
func_80088B34(30);
|
||||
Interface_SetTimer(30);
|
||||
func_800F5ACC(NA_BGM_TIMED_MINI_GAME);
|
||||
this->stateFlags |= TALON_STATE_FLAG_RESTORE_BGM_ON_DESTROY;
|
||||
Message_CloseTextbox(play);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue