From 74a1dc1ae47e54059de03cefb1b8cd192d7b9b6b Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Mon, 29 Oct 2018 20:59:40 -0700 Subject: Doors + ideas for more buttons --- Source/Main.cpp | 24 +++++++++++++++++++++++- Source/Randomizer.cpp | 7 ++++++- Source/RandomizerCore.h | 2 ++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/Source/Main.cpp b/Source/Main.cpp index bcd7ebf..c7b4e69 100644 --- a/Source/Main.cpp +++ b/Source/Main.cpp @@ -124,7 +124,29 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd CreateWindow(L"STATIC", L"Place harder puzzles in annoying spots", WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT, 27, 50, 205, 16, hwnd, NULL, hInstance, NULL); - */ + + CreateWindow(L"BUTTON", L"", + WS_VISIBLE | WS_CHILD | BS_CHECKBOX, + 10, 52, 12, 12, hwnd, (HMENU)IDC_NORANDOMIZE, hInstance, NULL); + CreateWindow(L"STATIC", L"Do not randomize any puzzles", + WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT, + 27, 50, 205, 16, hwnd, NULL, hInstance, NULL); + + CreateWindow(L"BUTTON", L"", + WS_VISIBLE | WS_CHILD | BS_CHECKBOX, + 10, 52, 12, 12, hwnd, (HMENU)IDC_CASUAL, hInstance, NULL); + CreateWindow(L"STATIC", L"Don't randomize context-based puzzles", + WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT, + 27, 50, 205, 16, hwnd, NULL, hInstance, NULL); + + CreateWindow(L"BUTTON", L"", + WS_VISIBLE | WS_CHILD | BS_CHECKBOX, + 10, 52, 12, 12, hwnd, (HMENU)IDC_BANSNIPES, hInstance, NULL); + CreateWindow(L"STATIC", L"Prevent sniping certain puzzles", + WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT, + 27, 50, 205, 16, hwnd, NULL, hInstance, NULL); + +*/ ShowWindow(hwnd, nCmdShow); UpdateWindow(hwnd); diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index 406468c..c539bba 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp @@ -60,7 +60,12 @@ void Randomizer::Randomize() } void Randomizer::AdjustSpeed() { - + // Desert Surface Final Control + _core.WritePanelData(0x09F95, OPEN_RATE, {0.04}); // 4x + // Swamp Sliding Bridge + _core.WritePanelData(0x0061A, OPEN_RATE, {0.1}); // 4x + // Mountain 2 Elevator + _core.WritePanelData(0x09EEC, OPEN_RATE, {0.1}); // 4x } void Randomizer::RandomizeTutorial() { diff --git a/Source/RandomizerCore.h b/Source/RandomizerCore.h index 711cc89..e8d3661 100644 --- a/Source/RandomizerCore.h +++ b/Source/RandomizerCore.h @@ -94,6 +94,7 @@ private: #define SPECULAR_TEXTURE 0x4D8 #define CABLE_TARGET_2 0xD8 #define AUDIO_LOG_NAME 0xC8 +#define OPEN_RATE 0xE8 #elif GLOBALS == 0x62A080 #define PATH_COLOR 0xC0 #define REFLECTION_PATH_COLOR 0xD0 @@ -156,4 +157,5 @@ private: #define SPECULAR_TEXTURE 0x4D0 #define CABLE_TARGET_2 0xD0 #define AUDIO_LOG_NAME 0x0 +#define OPEN_RATE 0xE0 #endif \ No newline at end of file -- cgit 1.4.1