diff --git a/Home.md b/Home.md index 62570f4..e181756 100644 --- a/Home.md +++ b/Home.md @@ -1,11 +1,28 @@ ## Rando v2 -Check Data conversion +### Check Data conversion * merchantPrices, itemLocations unified into current CheckTrackerData structure, to be renamed to CheckData -Convert 3DS rando to utilize SoH data structures (gSaveContext) +### Convert 3DS rando to utilize SoH data structures (gSaveContext) * options * inventory * check data * end goal being live-playthrough instance is plug and play with generation playthrough structures, for easy availability checking -Name parity with Archipelago \ No newline at end of file +What this might look like in practice +```c + RandomizerCheck rc = Randomizer_GetRandomizerCheckFromActor(this->actor.params, play->sceneId); + + if (rc.isShuffled()) { + if (rc.isObtainable() && !rc.isObtained()) { + this->actionFunc = En_CowIdle; + Randomzier_ObtainRandomizerCheck(rc); + } else { + this->actionFunc = En_CowReturnToIdle; + this->actor.textId = 0x4011; + } + } else { + this->actionFunc = En_CowCheckEmptyBottle; + } +``` + +### Name parity with Archipelago \ No newline at end of file