From ceacb72620a7250c883c692a1236e7671746a023 Mon Sep 17 00:00:00 2001 From: Garrett Cox Date: Mon, 11 Sep 2023 12:45:41 -0500 Subject: [PATCH] Updated Home (markdown) --- Home.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) 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