From 5f99f9e87ef23f342e89bab029cc4fc8c5ad6663 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Sun, 28 Oct 2018 20:51:35 -0700 Subject: Better UI + tried audio logs --- Source/Randomizer.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Source/Randomizer.cpp') diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index f7f176a..c4b3a13 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp @@ -3,8 +3,7 @@ * Shipwreck vault is solved reversed? * Verify UTM perspective? * FEATURES: - * Challenge randomization - * Randomize audio logs + * Randomize audio logs -- Hard, seem to be unloaded some times? * Swap sounds in jungle (along with panels) -- maybe impossible * Make orange 7 (all of oranges?) hard. Like big = hard. * Start the game if it isn't running? @@ -51,6 +50,7 @@ void Randomizer::Randomize() RandomizeSwamp(); RandomizeMountain(); // RandomizeChallenge(); + // RandomizeAudioLogs(); } void Randomizer::RandomizeTutorial() { @@ -163,7 +163,7 @@ void Randomizer::RandomizeMountain() { void Randomizer::RandomizeChallenge() { std::vector randomOrder(challengePanels.size(), 0); std::iota(randomOrder.begin(), randomOrder.end(), 0); - _core.RandomizeRange(randomOrder, SWAP_NONE, 1, 11); // Easy maze - Triple 2 + _core.RandomizeRange(randomOrder, SWAP_NONE, 1, 9); // Easy maze - Triple 2 std::vector triple1Target = _core.ReadPanelData(0x00C80, TARGET, 1); _core.WritePanelData(0x00CA1, TARGET, triple1Target); _core.WritePanelData(0x00CB9, TARGET, triple1Target); @@ -171,4 +171,11 @@ void Randomizer::RandomizeChallenge() { _core.WritePanelData(0x00C59, TARGET, triple2Target); _core.WritePanelData(0x00C68, TARGET, triple2Target); _core.ReassignTargets(challengePanels, randomOrder); +} + +void Randomizer::RandomizeAudioLogs() { + std::vector randomOrder(audiologs.size(), 0); + std::iota(randomOrder.begin(), randomOrder.end(), 0); + _core.Randomize(randomOrder, SWAP_NONE); + _core.ReassignNames(audiologs, randomOrder); } \ No newline at end of file -- cgit 1.4.1