diff --git a/client/src/details.tsx b/client/src/details.tsx index 85ea5f3..50b10b3 100644 --- a/client/src/details.tsx +++ b/client/src/details.tsx @@ -54,6 +54,11 @@ export function EntityDetails(props: EntityDetailsProps) { attributes = item.attributes; } + if (type === 'room') { + const room = entity as Room; + attributes = room.attributes; + } + return {name} diff --git a/taleweave/render/comfy.py b/taleweave/render/comfy.py index 93c25b5..41e189f 100644 --- a/taleweave/render/comfy.py +++ b/taleweave/render/comfy.py @@ -162,7 +162,7 @@ def generate_images( ) env = Environment( - loader=FileSystemLoader(["adventure/templates"]), + loader=FileSystemLoader(["taleweave/templates"]), autoescape=select_autoescape(["json"]), ) template = env.get_template("comfy.json.j2") diff --git a/taleweave/systems/weather/weather_logic.yaml b/taleweave/systems/weather/weather_logic.yaml index c5f972c..905cb09 100644 --- a/taleweave/systems/weather/weather_logic.yaml +++ b/taleweave/systems/weather/weather_logic.yaml @@ -36,6 +36,13 @@ rules: set: weather: clear +# weather initial state + - group: weather + rule: | + "weather" not in attributes + set: + weather: clear + labels: - match: type: room