added setting

This commit is contained in:
MelonSpeedruns
2026-04-27 18:29:14 -04:00
parent 5eb3184174
commit 36092f1fdb
4 changed files with 10 additions and 2 deletions
+1
View File
@@ -71,6 +71,7 @@ struct UserSettings {
ConfigVar<bool> disableRupeeCutscenes;
ConfigVar<bool> noSwordRecoil;
ConfigVar<int> damageMultiplier;
ConfigVar<bool> hyperEnemies;
ConfigVar<bool> noHeartDrops;
ConfigVar<bool> instantDeath;
ConfigVar<bool> fastClimbing;
+3
View File
@@ -216,6 +216,8 @@ namespace dusk {
ImGui::BeginDisabled(getSettings().game.speedrunMode);
config::ImGuiSliderInt("Damage Multiplier", getSettings().game.damageMultiplier, 1, 8, "x%d");
config::ImGuiCheckbox("Hyper Enemies", getSettings().game.hyperEnemies);
config::ImGuiCheckbox("Instant Death", getSettings().game.instantDeath);
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Any hit will instantly kill you.");
@@ -1122,6 +1124,7 @@ namespace dusk {
getSettings().game.damageMultiplier.setValue(1);
getSettings().game.instantDeath.setValue(false);
getSettings().game.noHeartDrops.setValue(false);
getSettings().game.hyperEnemies.setValue(false);
getSettings().game.infiniteHearts.setValue(false);
getSettings().game.infiniteArrows.setValue(false);
+3 -1
View File
@@ -31,7 +31,8 @@ UserSettings g_userSettings = {
.disableRupeeCutscenes {"game.disableRupeeCutscenes", false},
.noSwordRecoil {"game.noSwordRecoil", false},
.damageMultiplier {"game.damageMultiplier", 1},
.noHeartDrops{"game.noHeartDrops", false},
.hyperEnemies {"game.hyperEnemies", false},
.noHeartDrops {"game.noHeartDrops", false},
.instantDeath {"game.instantDeath", false},
.fastClimbing {"game.fastClimbing", false},
.noMissClimbing {"game.noMissClimbing", false},
@@ -143,6 +144,7 @@ void registerSettings() {
Register(g_userSettings.game.disableRupeeCutscenes);
Register(g_userSettings.game.noSwordRecoil);
Register(g_userSettings.game.damageMultiplier);
Register(g_userSettings.game.hyperEnemies);
Register(g_userSettings.game.noHeartDrops);
Register(g_userSettings.game.instantDeath);
Register(g_userSettings.game.fastClimbing);
+3 -1
View File
@@ -335,9 +335,11 @@ static int fopAc_Execute(void* i_this) {
print_error_check_c error_check(actor, print_error_check_c::sEXECUTE);
#endif
if (actor->group == fopAc_ENEMY_e) {
#if TARGET_PC
if (actor->group == fopAc_ENEMY_e && dusk::getSettings().game.hyperEnemies) {
fpcMtd_Execute((process_method_class*)actor->sub_method, actor);
}
#endif
ret = fpcMtd_Execute((process_method_class*)actor->sub_method, actor);