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

+1 -3
View File
@@ -108,9 +108,7 @@ public:
std::string npcId;
std::string npcName;
float hp = 200.f;
// Captured lazily from `hp` on the first update() tick if left at zero;
// set explicitly if you need a different reference for the health bar.
float initialHp = 0.f;
float initialHp = 200.f;
int battle_state = 0;