From 720ff2f31ce14db609bc582b9770993a5a5b6e5c Mon Sep 17 00:00:00 2001 From: autocommit Date: Wed, 15 Apr 2026 19:23:52 -0700 Subject: [PATCH] =?UTF-8?q?feat(engine):=20=E2=9C=A8=20Introduce=20founder?= =?UTF-8?q?=20unit=20type=20with=20custom=20behavior=20and=20rendering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- src/game/engine/src/entities/unit.gd | 6 +++--- src/game/engine/src/rendering/unit_renderer.gd | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/engine/src/entities/unit.gd b/src/game/engine/src/entities/unit.gd index 5b77c6e9..ecb411b5 100644 --- a/src/game/engine/src/entities/unit.gd +++ b/src/game/engine/src/entities/unit.gd @@ -144,7 +144,7 @@ func _populate_from_data() -> void: if display_name.is_empty(): display_name = data.get("name", unit_id.capitalize()) var is_founder: bool = ( - unit_id.contains("founder") or unit_id.contains("settler") + unit_id.contains("founder") ) can_found_city = data.get("can_found_city", is_founder) var is_builder: bool = ( @@ -201,12 +201,12 @@ func is_military() -> bool: var combat_type: String = get_combat_type() if combat_type.is_empty(): return false - return combat_type != "settler" and combat_type != "worker" and combat_type != "civilian" + return combat_type != "founder" and combat_type != "worker" and combat_type != "civilian" func is_civilian() -> bool: var combat_type: String = get_combat_type() - return combat_type == "civilian" or combat_type == "settler" or combat_type == "worker" + return combat_type == "civilian" or combat_type == "founder" or combat_type == "worker" func get_combat_type() -> String: diff --git a/src/game/engine/src/rendering/unit_renderer.gd b/src/game/engine/src/rendering/unit_renderer.gd index 289f73b5..d178da16 100644 --- a/src/game/engine/src/rendering/unit_renderer.gd +++ b/src/game/engine/src/rendering/unit_renderer.gd @@ -20,7 +20,7 @@ const MOVE_RANGE_BORDER_COLOR: Color = Color(0.3, 0.5, 1.0, 0.5) ## Combat type to marker label mapping for placeholder rendering. const COMBAT_TYPE_LABELS: Dictionary = { - "settler": "F", "founder": "F", + "founder": "F", "worker": "W", "ranged": "R", "siege": "S",