Enhance item visibility logic and update initial energy parameter; add tests for life icon functionality

This commit is contained in:
Kirill
2026-09-28 22:56:40 +03:00
parent 2f0a3ee8d4
commit c2313e9163
6 changed files with 69 additions and 7 deletions
+4
View File
@@ -145,6 +145,10 @@ func get_item_amounts(total_produced: bool = false) -> Dictionary[String, float]
var item_id: String = id
if entities.has(id) and entities[id].count_as != "":
item_id = entities[id].count_as
# Detailed icons need their own count as well as the summary alias.
# Aggregate only from source, never from these presentation entries.
if item_id != id:
result[id] = result.get(id, 0.0) + float(source[id])
result[item_id] = result.get(item_id, 0.0) + float(source[id])
for id in source:
if _is_group(id):
+1 -1
View File
@@ -1,6 +1,6 @@
extends RefCounted
const INITIAL_ENERGY = 1.0e14
const INITIAL_ENERGY = 1.0e27
const TRENDS = ["Antitheism", "Integration", "Xenocide", "Reconstruction", "Spirituality"]
const WEIGHTS = {
"m": [0, 2, 2, 0, 6], "l": [6, 1, 1, 2, 0],