- Seed now resets the database and seeds the Aldenfell campaign from the campaign book: admin DM user, default weapons, locations, bestiary, pre-built encounters, and DM/shared notes - Default weapon/spell/monster library, character profile fields, locations and dice mode (new migration) - Party overview page, pagination, info tips, build preview calc - Remove stale demo-login hint; notes preserve line breaks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
495 B
TypeScript
20 lines
495 B
TypeScript
import type { Species } from '../api/types';
|
|
|
|
// Quick visual identification in lists/tables — purely decorative.
|
|
export const SPECIES_ICONS: Record<Species, string> = {
|
|
HUMAN: '🙂',
|
|
HALF_ELF: '🧝',
|
|
ELF: '🧝♀️',
|
|
GNOME: '🍄',
|
|
DWARF: '⛏️',
|
|
HALFLING: '🌾',
|
|
DRAGONBORN: '🐉',
|
|
TIEFLING: '😈',
|
|
HALF_ORC: '🪓',
|
|
ORC: '👹',
|
|
};
|
|
|
|
export function speciesIcon(species: Species | null): string {
|
|
return species ? SPECIES_ICONS[species] || '❓' : '❓';
|
|
}
|