@@ -128,7 +128,7 @@ s16 func_80A9C6C0(PlayState* play, Actor* thisx) {
128
128
129
129
switch (Message_GetState (& play -> msgCtx )) {
130
130
case TEXT_STATE_DONE :
131
- if (CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
131
+ if (CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
132
132
if (Message_ShouldAdvance (play )) {
133
133
ret = NPC_TALK_STATE_ITEM_GIVEN ;
134
134
}
@@ -149,7 +149,7 @@ s16 func_80A9C6C0(PlayState* play, Actor* thisx) {
149
149
}
150
150
break ;
151
151
case TEXT_STATE_CLOSING :
152
- if (CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
152
+ if (CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
153
153
ret = NPC_TALK_STATE_IDLE ;
154
154
switch (this -> actor .textId ) {
155
155
case 0x4012 :
@@ -182,8 +182,8 @@ s16 func_80A9C6C0(PlayState* play, Actor* thisx) {
182
182
break ;
183
183
}
184
184
if (this -> actor .textId == 0x4014 ) {
185
- if (play -> msgCtx .choiceIndex == 0 && (CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 ) && this -> actor .textId == 0x4014 )) {
186
- if (!CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
185
+ if (play -> msgCtx .choiceIndex == 0 && (CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 ) && this -> actor .textId == 0x4014 )) {
186
+ if (!CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
187
187
EnKz_SetupGetItem (this , play );
188
188
}
189
189
ret = NPC_TALK_STATE_ACTION ;
@@ -231,7 +231,7 @@ s32 func_80A9C95C(PlayState* play, EnKz* this, s16* talkState, f32 unkf, NpcGetT
231
231
return 1 ;
232
232
}
233
233
234
- if (!CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
234
+ if (!CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
235
235
if (* talkState != NPC_TALK_STATE_IDLE ) {
236
236
* talkState = updateTalkState (play , & this -> actor );
237
237
return 0 ;
@@ -252,7 +252,7 @@ s32 func_80A9C95C(PlayState* play, EnKz* this, s16* talkState, f32 unkf, NpcGetT
252
252
return 0 ;
253
253
}
254
254
255
- if (CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
255
+ if (CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
256
256
if (* talkState != NPC_TALK_STATE_IDLE ) {
257
257
* talkState = updateTalkState (play , & this -> actor );
258
258
return 0 ;
@@ -274,7 +274,7 @@ s32 func_80A9C95C(PlayState* play, EnKz* this, s16* talkState, f32 unkf, NpcGetT
274
274
void func_80A9CB18 (EnKz * this , PlayState * play ) {
275
275
Player * player = GET_PLAYER (play );
276
276
277
- if (CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
277
+ if (CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
278
278
f32 yaw ;
279
279
yaw = Math_Vec3f_Yaw (& this -> actor .home .pos , & player -> actor .world .pos );
280
280
yaw -= this -> actor .shape .rot .y ;
@@ -307,13 +307,13 @@ void func_80A9CB18(EnKz* this, PlayState* play) {
307
307
this -> actor .textId = 0x4014 ;
308
308
this -> sfxPlayed = false;
309
309
player -> actor .textId = this -> actor .textId ;
310
- if (!CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
310
+ if (!CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
311
311
this -> isTrading = true;
312
312
}
313
313
return ;
314
314
}
315
315
}
316
- if (!CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
316
+ if (!CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
317
317
this -> isTrading = false;
318
318
}
319
319
if (Flags_GetInfTable (INFTABLE_139 )) {
@@ -482,7 +482,7 @@ void EnKz_StopMweep(EnKz* this, PlayState* play) {
482
482
483
483
void EnKz_Wait (EnKz * this , PlayState * play ) {
484
484
if (this -> interactInfo .talkState == NPC_TALK_STATE_ACTION ) {
485
- if (CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
485
+ if (CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
486
486
this -> interactInfo .talkState = NPC_TALK_STATE_IDLE ;
487
487
}
488
488
this -> actionFunc = EnKz_SetupGetItem ;
@@ -511,7 +511,7 @@ void EnKz_SetupGetItem(EnKz* this, PlayState* play) {
511
511
Flags_SetRandomizerInf (RAND_INF_ADULT_TRADES_ZD_TRADE_PRESCRIPTION );
512
512
}
513
513
} else {
514
- if (CVarGetInteger ("gRestorations. EarlyEyeballFrog" , 0 )) {
514
+ if (CVarGetInteger (CVAR_ENHANCEMENT ( " EarlyEyeballFrog") , 0 )) {
515
515
getItemId = func_8002F368 (play ) == EXCH_ITEM_PRESCRIPTION ? GI_FROG : GI_TUNIC_ZORA ;
516
516
} else {
517
517
getItemId = this -> isTrading ? GI_FROG : GI_TUNIC_ZORA ;
0 commit comments