mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-25 15:05:06 -04:00
added setting
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user