summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Source/Main.cpp24
-rw-r--r--Source/Randomizer.cpp7
-rw-r--r--Source/RandomizerCore.h2
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
124 CreateWindow(L"STATIC", L"Place harder puzzles in annoying spots", 124 CreateWindow(L"STATIC", L"Place harder puzzles in annoying spots",
125 WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT, 125 WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT,
126 27, 50, 205, 16, hwnd, NULL, hInstance, NULL); 126 27, 50, 205, 16, hwnd, NULL, hInstance, NULL);
127 */ 127
128 CreateWindow(L"BUTTON", L"",
129 WS_VISIBLE | WS_CHILD | BS_CHECKBOX,
130 10, 52, 12, 12, hwnd, (HMENU)IDC_NORANDOMIZE, hInstance, NULL);
131 CreateWindow(L"STATIC", L"Do not randomize any puzzles",
132 WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT,
133 27, 50, 205, 16, hwnd, NULL, hInstance, NULL);
134
135 CreateWindow(L"BUTTON", L"",
136 WS_VISIBLE | WS_CHILD | BS_CHECKBOX,
137 10, 52, 12, 12, hwnd, (HMENU)IDC_CASUAL, hInstance, NULL);
138 CreateWindow(L"STATIC", L"Don't randomize context-based puzzles",
139 WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT,
140 27, 50, 205, 16, hwnd, NULL, hInstance, NULL);
141
142 CreateWindow(L"BUTTON", L"",
143 WS_VISIBLE | WS_CHILD | BS_CHECKBOX,
144 10, 52, 12, 12, hwnd, (HMENU)IDC_BANSNIPES, hInstance, NULL);
145 CreateWindow(L"STATIC", L"Prevent sniping certain puzzles",
146 WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT,
147 27, 50, 205, 16, hwnd, NULL, hInstance, NULL);
148
149*/
128 150
129 ShowWindow(hwnd, nCmdShow); 151 ShowWindow(hwnd, nCmdShow);
130 UpdateWindow(hwnd); 152 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()
60} 60}
61 61
62void Randomizer::AdjustSpeed() { 62void Randomizer::AdjustSpeed() {
63 63 // Desert Surface Final Control
64 _core.WritePanelData<float>(0x09F95, OPEN_RATE, {0.04}); // 4x
65 // Swamp Sliding Bridge
66 _core.WritePanelData<float>(0x0061A, OPEN_RATE, {0.1}); // 4x
67 // Mountain 2 Elevator
68 _core.WritePanelData<float>(0x09EEC, OPEN_RATE, {0.1}); // 4x
64} 69}
65 70
66void Randomizer::RandomizeTutorial() { 71void 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:
94#define SPECULAR_TEXTURE 0x4D8 94#define SPECULAR_TEXTURE 0x4D8
95#define CABLE_TARGET_2 0xD8 95#define CABLE_TARGET_2 0xD8
96#define AUDIO_LOG_NAME 0xC8 96#define AUDIO_LOG_NAME 0xC8
97#define OPEN_RATE 0xE8
97#elif GLOBALS == 0x62A080 98#elif GLOBALS == 0x62A080
98#define PATH_COLOR 0xC0 99#define PATH_COLOR 0xC0
99#define REFLECTION_PATH_COLOR 0xD0 100#define REFLECTION_PATH_COLOR 0xD0
@@ -156,4 +157,5 @@ private:
156#define SPECULAR_TEXTURE 0x4D0 157#define SPECULAR_TEXTURE 0x4D0
157#define CABLE_TARGET_2 0xD0 158#define CABLE_TARGET_2 0xD0
158#define AUDIO_LOG_NAME 0x0 159#define AUDIO_LOG_NAME 0x0
160#define OPEN_RATE 0xE0
159#endif \ No newline at end of file 161#endif \ No newline at end of file