Refactor of some old rando code to use new functions.

This commit is contained in:
Christopher Leggett 2022-08-27 18:42:36 -04:00
commit fafd90482b
No known key found for this signature in database
GPG key ID: 7093AE5FF7037D79

View file

@ -271,27 +271,10 @@ void DemoKekkai_TrialBarrierDispel(Actor* thisx, GlobalContext* globalCtx) {
DemoKekkai* this = (DemoKekkai*)thisx; DemoKekkai* this = (DemoKekkai*)thisx;
if (gSaveContext.n64ddFlag) { if (gSaveContext.n64ddFlag) {
switch (thisx->params) { Flags_SetRandomizerInf(trialParamToRandInf(thisx->params));
case KEKKAI_WATER: // May or may not be needed. Not sure if needed for anything
Flags_SetRandomizerInf(RAND_INF_TRIALS_DONE_WATER_TRIAL); // that randoInf isn't already covering. Leaving it for safety.
break; Flags_SetEventChkInf(eventFlags[thisx->params]);
case KEKKAI_LIGHT:
Flags_SetRandomizerInf(RAND_INF_TRIALS_DONE_LIGHT_TRIAL);
break;
case KEKKAI_FIRE:
Flags_SetRandomizerInf(RAND_INF_TRIALS_DONE_FIRE_TRIAL);
break;
case KEKKAI_SHADOW:
Flags_SetRandomizerInf(RAND_INF_TRIALS_DONE_SHADOW_TRIAL);
break;
case KEKKAI_SPIRIT:
Flags_SetRandomizerInf(RAND_INF_TRIALS_DONE_SPIRIT_TRIAL);
break;
case KEKKAI_FOREST:
Flags_SetRandomizerInf(RAND_INF_TRIALS_DONE_FOREST_TRIAL);
break;
}
Flags_SetEventChkInf(eventFlags[thisx->params]);
} }
if (globalCtx->csCtx.frames == csFrames[this->actor.params]) { if (globalCtx->csCtx.frames == csFrames[this->actor.params]) {