Fixing hp bugs
This commit is contained in:
1 parent
49501e32ce
commit
21bf3f0710
10 files changed
+38
-16
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user