feat: add protected tourist encounters
This commit is contained in:
@@ -12,6 +12,9 @@ var max_hit_points: int
|
||||
# Legacy basic damage remains the unarmed/default weapon damage.
|
||||
var attack_damage: int
|
||||
var content_id: StringName
|
||||
# Non-combat authored NPC state (including protected tourist health) persists
|
||||
# alongside the actor without exposing it to normal combat resolution.
|
||||
var metadata: Dictionary = {}
|
||||
|
||||
# Data-backed combat stats. Defaults retain the pre-C2 prototype fixtures.
|
||||
var accuracy := 30
|
||||
@@ -65,6 +68,7 @@ func _init(new_id: StringName, new_cell: Vector2i, new_hit_points: int, new_atta
|
||||
max_hit_points = new_hit_points
|
||||
attack_damage = new_attack_damage
|
||||
content_id = new_content_id if not new_content_id.is_empty() else new_id
|
||||
metadata = combat_data.get("metadata", {}).duplicate(true)
|
||||
accuracy = int(combat_data.get("accuracy", accuracy))
|
||||
defense = int(combat_data.get("defense", defense))
|
||||
armor = int(combat_data.get("armor", armor))
|
||||
|
||||
Reference in New Issue
Block a user