fix: use correct SOR.Database.Enums.Affinity values throughout client

Replace placeholder Fire/Water/Earth/Air/Lightning/Dark/Light affinities
with the actual enum values: Void, Aether, Lake, Hill, Forest, Field (basics)
plus their non-basic combos (Ocean, Island, Marsh, Swamp, Mountain, Steppe,
Fort, Plains, Grove, Jungle, PerfectAether, PureVoid).

- Rename 7 wrong SVG icons → 6 correct ones (Void/Aether/Lake/Hill/Forest/Field)
- card_widget.gd: rewrite AFFINITY_BORDER, AFFINITY_BG for all 18 card affinities;
  add static affinity_icon() helper that maps non-basics to their primary basic icon
- card_detail_popup.gd: use affinity_icon() instead of direct dict lookup
- cars_view.gd: affinity filter now lists all 18 card-valid affinities

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-02 07:34:07 -05:00
co-authored by Claude Happy
parent 8da0172563
commit 56027e0f47
17 changed files with 114 additions and 59 deletions
@@ -71,7 +71,15 @@ func _populate_type_options() -> void:
func _populate_affinity_options() -> void:
affinity_option.clear()
affinity_option.add_item("All Affinities")
for a in ["Fire", "Water", "Earth", "Air", "Lightning", "Dark", "Light"]:
for a in [
# Basic
"Void", "Aether", "Lake", "Hill", "Forest", "Field",
# Non-basic
"Ocean", "Island", "Marsh", "Swamp",
"Mountain", "Steppe", "Fort",
"Plains", "Grove", "Jungle",
"PerfectAether", "PureVoid",
]:
affinity_option.add_item(a)
# ── Responsive columns ────────────────────────────────────────────────────────