Minor dialogue and UI bug fixing
This commit is contained in:
1 parent
fff5a9d4aa
commit
db456bde09
11 files changed
+2350
-21
No files matched your search
+12
-1
@@ -117,8 +117,19 @@ public:
|
||||
|
||||
std::string npcId;
|
||||
std::string npcName;
|
||||
float hp = 200.f;
|
||||
float initialHp = 200.f;
|
||||
protected:
|
||||
float hp = 200.f;
|
||||
public:
|
||||
|
||||
float getHp() const {
|
||||
return hp;
|
||||
}
|
||||
|
||||
void setHp(float newHp) {
|
||||
hp = newHp;
|
||||
if (onHpChanged) onHpChanged(hp, initialHp);
|
||||
}
|
||||
|
||||
// The position the NPC should return to if pushed too far away.
|
||||
// Initialised to the spawn position; updated whenever a script walk command is issued.
|
||||
|
||||
Reference in new issue
Block a user