Audio: mood music, ambience, sound effects and creature voices (Kenney CC0 + synthesised); protocol 13

This commit is contained in:
Paul Bailey
2026-11-05 21:03:54 +00:00
parent 2a9d47630e
commit caa611fac6
159 changed files with 1814 additions and 3 deletions

View File

@@ -179,7 +179,8 @@ static func _pickup(w: Node3D, WN: Node, key: String) -> Node3D:
static func report(w: Node3D, WN: Node, cmd: Dictionary, corr: int) -> Dictionary:
var out := {"nodes": {}, "pieces": {}, "taken": {}, "inv": w.player.inventory.to_data(),
"received": WN.received, "corrections": corr, "dropped": []}
"received": WN.received, "corrections": corr, "dropped": [],
"sounds": w.get_tree().root.get_node("Sfx").heard.map(func(h): return h[0])}
for uid in cmd.get("uids", []):
var n: Node3D = w.props.resource_nodes.get(uid)
out.nodes[uid] = {"hp": n.hp, "depleted": n.depleted} if n != null else null