diff options
Diffstat (limited to 'web/src/lib/game/art.ts')
| -rw-r--r-- | web/src/lib/game/art.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web/src/lib/game/art.ts b/web/src/lib/game/art.ts index 4be6637..af81fac 100644 --- a/web/src/lib/game/art.ts +++ b/web/src/lib/game/art.ts @@ -14,6 +14,15 @@ export function monsterImage(gfx: string): string { } /** + * A summon standee's artwork (the reference `summon/${gfx}.png`; the gfx is + * a colour name or an item-summon art name). Empty gfx falls back to green, + * like the reference. + */ +export function summonImage(gfx: string): string { + return `/images/summon/${gfx || 'green'}.png`; +} + +/** * A character-class background colour. The data stores a Flutter ARGB hex * string (e.g. `"ffa28b7c"`); CSS wants `#rrggbb` with the alpha dropped * (the reference uses it at full opacity as the row backdrop). |
