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
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<!-- Four-pointed star / sparkle -->
<path fill="white" d="M12 2l2.5 7.5L22 12l-7.5 2.5L12 22l-2.5-7.5L2 12l7.5-2.5z"/>
</svg>

After

Width:  |  Height:  |  Size: 192 B

@@ -1,6 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<rect fill="white" x="3" y="7" width="15" height="2.5" rx="1.25"/>
<path fill="white" d="M18 7a3 3 0 1 1 0 6H3V10.5h15a.5.5 0 0 0 0-1H3V7h15z"/>
<rect fill="white" x="3" y="13" width="11" height="2.5" rx="1.25"/>
<path fill="white" d="M14 13a3 3 0 1 1 0 6H3V16.5h11a.5.5 0 0 0 0-1H3V13h11z"/>
</svg>

Before

Width:  |  Height:  |  Size: 369 B

@@ -1,3 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="white" d="M12 3a9 9 0 0 0 0 18 9.2 9.2 0 0 0 2-.22A7 7 0 0 1 9.78 6.22 9.2 9.2 0 0 0 12 3z"/>
</svg>

Before

Width:  |  Height:  |  Size: 176 B

@@ -1,3 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="white" d="M1.5 21L8 7l5.5 9.5 3.5-6L23 21H1.5z"/>
</svg>

Before

Width:  |  Height:  |  Size: 132 B

@@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<!-- Three wheat stalks -->
<rect fill="white" x="7" y="10" width="2" height="12" rx="1"/>
<ellipse fill="white" cx="8" cy="8" rx="2.2" ry="3.5"/>
<rect fill="white" x="11" y="8" width="2" height="14" rx="1"/>
<ellipse fill="white" cx="12" cy="6" rx="2.2" ry="3.5"/>
<rect fill="white" x="15" y="10" width="2" height="12" rx="1"/>
<ellipse fill="white" cx="16" cy="8" rx="2.2" ry="3.5"/>
</svg>

After

Width:  |  Height:  |  Size: 470 B

@@ -1,4 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="white" d="M12 2C9.5 5.5 7 8.5 8 13c.4 1.8 1.6 3 2.8 3.8-.6-1.6 0-3.2 1.2-4 .4 1.8 1.4 3 2.2 4.2 1-1.4 1.2-3.2.3-4.8C16.4 13.6 17 16 16 18.5c-1 2.2-3.2 3.5-4 3.5C8.5 22 5.5 19.5 5.5 16.5c0-5 4-7.5 6.5-14.5z"/>
<path fill="white" d="M12 10c-.5 2.5.5 4 2 5-.5-2 .5-3.5 1.5-4.5-.5 2 .5 4 0 6C17.5 15 18 12.5 16.5 11 18 12.5 18 15 17 17c-1 2.5-3.5 4-5 4z"/>
</svg>

Before

Width:  |  Height:  |  Size: 437 B

@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<!-- Stylised tree: triangular crown + trunk -->
<path fill="white" d="M12 2L20 15H15L17 20H7L9 15H4L12 2Z"/>
<rect fill="white" x="10.5" y="19" width="3" height="3" rx="1"/>
</svg>

After

Width:  |  Height:  |  Size: 249 B

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<!-- Gentle hill / dome -->
<path fill="white" d="M2 20Q7 5 12 5Q17 5 22 20Z"/>
</svg>

After

Width:  |  Height:  |  Size: 152 B

@@ -1,3 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<!-- Water drop -->
<path fill="white" d="M12 2L5.5 12.5C4 15.2 4.5 18 6.5 19.8A7 7 0 0 0 12 22a7 7 0 0 0 5.5-2.2C19.5 18 20 15.2 18.5 12.5L12 2z"/>
</svg>

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 221 B

@@ -1,11 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<circle fill="white" cx="12" cy="12" r="4.5"/>
<rect fill="white" x="10.75" y="1" width="2.5" height="3.5" rx="1.25"/>
<rect fill="white" x="10.75" y="19.5" width="2.5" height="3.5" rx="1.25"/>
<rect fill="white" x="1" y="10.75" width="3.5" height="2.5" rx="1.25"/>
<rect fill="white" x="19.5" y="10.75" width="3.5" height="2.5" rx="1.25"/>
<rect fill="white" x="10.75" y="1" width="2.5" height="3.5" rx="1.25" transform="rotate(45 12 12)"/>
<rect fill="white" x="10.75" y="19.5" width="2.5" height="3.5" rx="1.25" transform="rotate(45 12 12)"/>
<rect fill="white" x="1" y="10.75" width="3.5" height="2.5" rx="1.25" transform="rotate(45 12 12)"/>
<rect fill="white" x="19.5" y="10.75" width="3.5" height="2.5" rx="1.25" transform="rotate(45 12 12)"/>
</svg>

Before

Width:  |  Height:  |  Size: 837 B

@@ -1,3 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="white" d="M13.5 2L5 13.5h6.5L10 22l9-12.5H13L13.5 2z"/>
</svg>

Before

Width:  |  Height:  |  Size: 138 B

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<!-- Crescent moon -->
<path fill="white" d="M12 3a9 9 0 0 0 0 18 9.5 9.5 0 0 0 2.1-.24A7 7 0 0 1 9.9 6.24 9.5 9.5 0 0 0 12 3z"/>
</svg>

After

Width:  |  Height:  |  Size: 202 B