Fix conduits

This commit is contained in:
Ategon 2024-09-15 05:22:08 -04:00
parent 72f22731bf
commit d3c4e6bafb
3 changed files with 3 additions and 3 deletions

View file

@ -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: if _persisted[category].has(key) and _persisted[category][key] == value:
return 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 _persisted[category][key] = value
if _triggerer: if _triggerer:

View file

@ -13,7 +13,7 @@ var _connections = {}
## Trigger an event to be read in by other objects ## Trigger an event to be read in by other objects
func trigger(key: String, data: Dictionary = {}) -> void: func trigger(key: String, data: Dictionary = {}) -> void:
_info("Triggered key ∧%s" % [key]) #_info("Triggered key ∧%s∧" % [key])
data.trigger = key data.trigger = key

View file

@ -77,7 +77,7 @@ func _process(delta: float) -> void:
else: else:
description_2.text = "[center]STATUS: STOPPED" 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] description_3.text = "[center]EFFICIENCY: %d%%" % [recent_data.efficiency]
rich_text_label_2.text = "[center]%d/%d" % [recent_data.workers, recent_data.max_workers] rich_text_label_2.text = "[center]%d/%d" % [recent_data.workers, recent_data.max_workers]