summaryrefslogtreecommitdiff
path: root/src/Game
diff options
context:
space:
mode:
authorThePixelGamer <thepixelmaster2354@gmail.com>2024-07-26 18:00:57 -0500
committerThePixelGamer <thepixelmaster2354@gmail.com>2024-07-26 18:00:57 -0500
commitde0fd08acc676caad7dd2f445f221473d7cd4b75 (patch)
tree0808bc291b399ccbe9c8fe00b328f94a8da04aff /src/Game
parent96f611fa5d1c2704d91e5c490662ec8c0a741279 (diff)
Update libraries and adjust code to match again
Diffstat (limited to 'src/Game')
-rw-r--r--src/Game/DLC/aocHardModeManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Game/DLC/aocHardModeManager.cpp b/src/Game/DLC/aocHardModeManager.cpp
index f149265d..9d8faef9 100644
--- a/src/Game/DLC/aocHardModeManager.cpp
+++ b/src/Game/DLC/aocHardModeManager.cpp
@@ -66,15 +66,15 @@ void HardModeManager::init_() {
}
void HardModeManager::nerfHpRestore(f32* hp) const {
- *hp = sead::Mathf::max(*hp * getMultiplier(MultiplierType::HpRestore), 1.0f);
+ *hp = sead::Mathf::clampMin(*hp * getMultiplier(MultiplierType::HpRestore), 1.0f);
}
void HardModeManager::nerfHpRestore(s32* hp) const {
- *hp = sead::Mathi::max(*hp * getMultiplier(MultiplierType::HpRestore), 1);
+ *hp = sead::Mathi::clampMin(*hp * getMultiplier(MultiplierType::HpRestore), 1);
}
void HardModeManager::modifyEnemyNoticeDuration(f32* value) const {
- *value = sead::Mathf::max(*value * getMultiplier(MultiplierType::EnemyNoticeDuration), 0);
+ *value = sead::Mathf::clampMin(*value * getMultiplier(MultiplierType::EnemyNoticeDuration), 0);
}
bool HardModeManager::shouldCreateLifeRecoverInfo(ksys::act::Actor* actor) {