Fixing hp bugs

This commit is contained in:
Vladislav Khorev committed 2026-05-18 09:17:05 +03:00
1 parent 49501e32ce
commit 21bf3f0710
10 files changed
+38 -16

No files matched your search

-3
View File
@@ -7,7 +7,6 @@
#include "GameConstants.h"
#include "Environment.h"
namespace ZL {
const float ATTACK_COOLDOWN_TIME = 1.6f;
@@ -149,8 +148,6 @@ float Character::getSpeedMultiplier(float transitionProgress) const {
void Character::update(int64_t deltaMs) {
if (!enabled) return;
if (initialHp <= 0.f) initialHp = hp;
if (slowMoTimeRemaining > 0.0f) {
slowMoTimeRemaining -= static_cast<float>(deltaMs) / 1000.0f;