From d3c4e6bafb149fd0a766db8adaa85cdc5d4c4504 Mon Sep 17 00:00:00 2001 From: Ategon Date: Sun, 15 Sep 2024 05:22:08 -0400 Subject: [PATCH] Fix conduits --- components/Persister/persister.gd | 2 +- components/Triggerer/triggerer.gd | 2 +- info_window.gd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Persister/persister.gd b/components/Persister/persister.gd index e18a771..cdc779d 100644 --- a/components/Persister/persister.gd +++ b/components/Persister/persister.gd @@ -46,7 +46,7 @@ func persist_data(key: String, value, category := PersisterEnums.Scope.RUN) -> v if _persisted[category].has(key) and _persisted[category][key] == value: return - _info("Set key <%s> in category {%s} to value |%s|" % [key, _get_category_name(category), value]) + #_info("Set key <%s> in category {%s} to value |%s|" % [key, _get_category_name(category), value]) _persisted[category][key] = value if _triggerer: diff --git a/components/Triggerer/triggerer.gd b/components/Triggerer/triggerer.gd index 8e9b8a6..fa6d0cf 100644 --- a/components/Triggerer/triggerer.gd +++ b/components/Triggerer/triggerer.gd @@ -13,7 +13,7 @@ var _connections = {} ## Trigger an event to be read in by other objects func trigger(key: String, data: Dictionary = {}) -> void: - _info("Triggered key ∧%s∧" % [key]) + #_info("Triggered key ∧%s∧" % [key]) data.trigger = key diff --git a/info_window.gd b/info_window.gd index e5f3898..309af33 100644 --- a/info_window.gd +++ b/info_window.gd @@ -77,7 +77,7 @@ func _process(delta: float) -> void: else: description_2.text = "[center]STATUS: STOPPED" - if recent_data: + if recent_data and recent_data.has("workers"): description_3.text = "[center]EFFICIENCY: %d%%" % [recent_data.efficiency] rich_text_label_2.text = "[center]%d/%d" % [recent_data.workers, recent_data.max_workers]