diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-22 12:52:23 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:27 +0200 |
| commit | 2b31330cb51e9be8960fa7d7dc1d9c6e3bba79eb (patch) | |
| tree | a5e3879b62fcfcf72460ab1a62d3f51abeec980f /go/ui | |
| parent | 181b38d96fbc13c7d8429eaeef5610b98f99c38c (diff) | |
| download | muhqs-game-2b31330cb51e9be8960fa7d7dc1d9c6e3bba79eb.tar.gz muhqs-game-2b31330cb51e9be8960fa7d7dc1d9c6e3bba79eb.zip | |
use canonical file names to retrieve card symbols
Diffstat (limited to 'go/ui')
| -rw-r--r-- | go/ui/mapView.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/ui/mapView.go b/go/ui/mapView.go index 9b1cd206..f716278c 100644 --- a/go/ui/mapView.go +++ b/go/ui/mapView.go @@ -282,7 +282,7 @@ func (vw *MapView) drawMapLayer(screen *ebiten.Image) { } func getPermanentSymbol(p game.Permanent, i int) *ebiten.Image { - permanentSymbol := assets.GetSymbol(strings.ToLower(p.Card().Name)) + permanentSymbol := assets.GetSymbol(p.Card().FileName()) if permanentSymbol == nil { symbol := fmt.Sprintf("%c%d", unicode.ToUpper(rune(p.Card().Type.String()[0])), i) permanentSymbol = assets.GetGenericSymbol(symbol) |
