feat(engine): Introduce founder unit type with custom behavior and rendering

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
autocommit 2026-04-15 19:23:52 -07:00
parent f35742dbf8
commit 720ff2f31c
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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",