Some improvements, added cutscene stub
This commit is contained in:
1 parent
72e05cdc28
commit
be05643b70
27 files changed
+3480
-40
No files matched your search
@@ -384,6 +384,7 @@ namespace ZL {
|
||||
|
||||
data.hp = item.value("hp", 100.0f);
|
||||
data.canAttack = item.value("canAttack", false);
|
||||
data.enabled = item.value("enabled", true);
|
||||
|
||||
// Load gift data if available
|
||||
if (item.contains("gift") && item["gift"].is_object()) {
|
||||
@@ -515,6 +516,7 @@ namespace ZL {
|
||||
npc->facingAngle = npcData.facingAngle;
|
||||
npc->hp = npcData.hp;
|
||||
npc->canAttack = npcData.canAttack;
|
||||
npc->enabled = npcData.enabled;
|
||||
npc->interactionRadius = npcData.interactionRadius;
|
||||
|
||||
// Set NPC metadata
|
||||
|
||||
@@ -65,6 +65,7 @@ namespace ZL {
|
||||
float facingAngle = 0.0f;
|
||||
float hp = 100.0f;
|
||||
bool canAttack = false;
|
||||
bool enabled = true;
|
||||
GiftData gift;
|
||||
float interactionRadius = 0.0f;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user