mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-30 16:35:26 -04:00
no sword recoil enhancement
This commit is contained in:
@@ -31,6 +31,7 @@ struct UserSettings {
|
||||
bool biggerWallets;
|
||||
bool noReturnRupees;
|
||||
bool disableRupeeCutscenes;
|
||||
bool noSwordRecoil;
|
||||
|
||||
// Preferences
|
||||
bool enableMirrorMode;
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include "d/actor/d_a_b_gnd.h"
|
||||
#include "SSystem/SComponent/c_math.h"
|
||||
|
||||
#include "dusk/settings.h"
|
||||
|
||||
enum daAlink_CutNmParamType {
|
||||
CUT_NM_PARAM_VERTICAL,
|
||||
CUT_NM_PARAM_LEFT,
|
||||
@@ -369,6 +371,12 @@ BOOL daAlink_c::changeCutReverseProc(daAlink_c::daAlink_ANM i_anmID) {
|
||||
return procCutReverseInit(i_anmID);
|
||||
}
|
||||
|
||||
#if TARGET_PC
|
||||
if (dusk::getSettings().game.noSwordRecoil) {
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (checkNoResetFlg0(FLG0_CUT_AT_FLG) || mEquipItem == dItemNo_COPY_ROD_e) {
|
||||
cXyz sp28;
|
||||
Vec sp1C;
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace dusk {
|
||||
ImGui::SetTooltip("Rupees won't play cutscenes after you've collected them the first time");
|
||||
}
|
||||
|
||||
ImGui::Checkbox("No Sword Recoil", &getSettings().game.noSwordRecoil);
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Link won't recoil when his sword hits walls");
|
||||
}
|
||||
|
||||
ImGui::Checkbox("Hide TV Settings Screen", &getSettings().game.hideTvSettingsScreen);
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Hides the TV calibration screen shown when loading a save");
|
||||
|
||||
@@ -27,6 +27,7 @@ UserSettings g_userSettings = {
|
||||
.biggerWallets = false,
|
||||
.noReturnRupees = false,
|
||||
.disableRupeeCutscenes = false,
|
||||
.noSwordRecoil = false,
|
||||
|
||||
// Preferences
|
||||
.enableMirrorMode = false,
|
||||
|
||||
Reference in New Issue
Block a user