document: code_91E10

This commit is contained in:
Bl00D4NGEL
2024-10-08 23:40:56 +02:00
parent 6fb4f2b3f1
commit 236253ee18
18 changed files with 590 additions and 367 deletions

View File

@@ -71,7 +71,7 @@ void gzquiz_initGruntyQuestions(void) {
if (fileProgressFlag_get(FILEPROG_5C_FF_PATTERN_SET) && !volatileFlag_get(VOLATILE_FLAG_62_FF_GRUNTY_QUESTIONS_INITIALIZED)) {
rand_seed(fileProgressFlag_getN(FILEPROG_D3_FF_PATTERN, 8));
for(i = 0; i < func_8031A45C(FFQT_3_GRUNTY); i++){
for(i = 0; i < code91E10_getLastIndexOfQuestionType(FFQT_3_GRUNTY); i++){
question_id = VOLATILE_FLAG_26_FF_GRUNTY_QUESTIONS + 2 * i;
pattern = randi2(0, 3);

View File

@@ -548,7 +548,7 @@ void func_8038CCEC(void)
free(D_8037DCB8);
D_8037DCB8 = NULL;
func_80319190();
code_91E10_free();
quizQuestionAskedBitfield_free();
func_802C5994();
}
@@ -590,7 +590,7 @@ void func_8038CE28(void)
{
s32 i;
func_80319050();
code_91E10_init();
D_8037DCB8 = malloc(sizeof(struct FF_StorageStruct));
quizQuestionAskedBitfield_init();
@@ -681,9 +681,8 @@ void lair_func_8038CF18(void)
}
}
s32 func_8038D0AC(s32 questionType, s32 a1)
static s32 __code5ED0_getQuizQuestionTime(s32 questionType, s32 a1)
{
// :morphone: tf
return 10;
}
@@ -912,7 +911,7 @@ void func_8038D670(enum FF_Action next_state) {
func_8028F918(2);
if (D_8037DCB8->ffQuestionType != FFQT_4_MINIGAME) {
func_8038CE00();
func_8031A154(D_8037DCB8->ffQuestionType, D_8037DCB8->unkD, D_8037DCB8->unkE, func_8038D0AC(D_8037DCB8->ffQuestionType, D_8037DCB8->unkC), 0, &func_8038D3F0);
code_91E10_func_8031A154(D_8037DCB8->ffQuestionType, D_8037DCB8->unkD, D_8037DCB8->unkE, __code5ED0_getQuizQuestionTime(D_8037DCB8->ffQuestionType, D_8037DCB8->unkC), 0, &func_8038D3F0);
} else {
func_8038D4BC();
}
@@ -943,7 +942,7 @@ void func_8038D670(enum FF_Action next_state) {
break;
}//L8038D91C
}
func_8031A48C();
code91E10_func_8031A48C();
break;
case FFA_6_TRIGGER_QUESTION_POST_EFFECTS: //L8038D940
@@ -1157,7 +1156,7 @@ void lair_func_8038E0B0(void) {
&& (D_8037DCB8 != NULL)
&& (D_8037DCB8->unk0 != NULL)
){
func_80319EA4();
code_91E10_func_80319EA4();
func_8038C9D0();
func_8024E55C(0, sp48);
func_8024E60C(0, sp3C);
@@ -1328,7 +1327,7 @@ void lair_func_8038E768(Gfx **dl, Mtx **m, Vtx **v)
if (map_get() != MAP_8E_GL_FURNACE_FUN)
return;
func_80319214(dl, m, v);
code91E10_draw(dl, m, v);
gczoombox_draw(D_8037DCB8->unk20, dl, m, v);
}

View File

@@ -131,7 +131,7 @@ void func_80390E28(Actor *this) {
switch (this->state) {
case 0:
if( !func_8031A3BC() && (sp38 < 2) && (randf() < 0.1) && !mapSpecificFlags_get(0xA) && !volatileFlag_get(VOLATILE_FLAG_1F_IN_CHARACTER_PARADE)) {
if( code91E10_isNotInInitialState() == FALSE && (sp38 < 2) && (randf() < 0.1) && !mapSpecificFlags_get(0xA) && !volatileFlag_get(VOLATILE_FLAG_1F_IN_CHARACTER_PARADE)) {
sp38++;
mapSpecificFlags_setN(0, sp38, 2);
func_80390D3C(this, (randf() < 0.5) ? 2 :1);

View File

@@ -240,7 +240,7 @@ void func_80391B04(Actor *this) {
func_8038E9A4(local->unk10, this->position);
switch (this->state) { /* irregular */
case 1:
if (func_8031A3BC() || mapSpecificFlags_get(0xA)) {
if (code91E10_isNotInInitialState() || mapSpecificFlags_get(0xA)) {
func_80391810(this, 4);
break;
}

View File

@@ -86,7 +86,7 @@ void func_80392700(Actor *this) {
this->marker->unk2C_2 = TRUE;
}
}
this->unk58_0 = !func_8031A3BC();
this->unk58_0 = !code91E10_isNotInInitialState();
}