Audio: mood music, ambience, sound effects and creature voices (Kenney CC0 + synthesised); protocol 13
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user