export interface KillerEntry {
  name: string;
  file: string;
}

export const KILLERS: KillerEntry[] = [
  { name: 'the Trapper',        file: 'K01_TheTrapper_Portrait.webp' },
  { name: 'the Wraith',         file: 'K02_TheWraith_Portrait.webp' },
  { name: 'the Hillbilly',      file: 'K03_TheHillbilly_Portrait.webp' },
  { name: 'the Nurse',          file: 'K04_TheNurse_Portrait.webp' },
  { name: 'the Shape',          file: 'K05_TheShape_Portrait.webp' },
  { name: 'the Hag',            file: 'K06_TheHag_Portrait.webp' },
  { name: 'the Doctor',         file: 'K07_TheDoctor_Portrait.webp' },
  { name: 'the Huntress',       file: 'K08_TheHuntress_Portrait.webp' },
  { name: 'the Cannibal',       file: 'K09_TheCannibal_Portrait.webp' },
  { name: 'the Nightmare',      file: 'K10_TheNightmare_Portrait.webp' },
  { name: 'the Pig',            file: 'K11_ThePig_Portrait.webp' },
  { name: 'the Clown',          file: 'K12_TheClown_Portrait.webp' },
  { name: 'the Spirit',         file: 'K13_TheSpirit_Portrait.webp' },
  { name: 'the Legion',         file: 'K14_TheLegion_Portrait.webp' },
  { name: 'the Plague',         file: 'K15_ThePlague_Portrait.webp' },
  { name: 'the Ghost Face',     file: 'K16_TheGhostFace_Portrait.webp' },
  { name: 'the Demogorgon',     file: 'K17_TheDemogorgon_Portrait.webp' },
  { name: 'the Oni',            file: 'K18_TheOni_Portrait.webp' },
  { name: 'the Deathslinger',   file: 'K19_TheDeathslinger_Portrait.webp' },
  { name: 'the Executioner',    file: 'K20_TheExecutioner_Portrait.webp' },
  { name: 'the Blight',         file: 'K21_TheBlight_Portrait.webp' },
  { name: 'the Twins',          file: 'K22_TheTwins_Portrait.webp' },
  { name: 'the Trickster',      file: 'K23_TheTrickster_Portrait.webp' },
  { name: 'the Nemesis',        file: 'K24_TheNemesis_Portrait.webp' },
  { name: 'the Cenobite',       file: 'K25_TheCenobite_Portrait.webp' },
  { name: 'the Artist',         file: 'K26_TheArtist_Portrait.webp' },
  { name: 'the Onryō',          file: 'K27_TheOnryo_Portrait.webp' },
  { name: 'the Dredge',         file: 'K28_TheDredge_Portrait.webp' },
  { name: 'the Mastermind',     file: 'K29_TheMastermind_Portrait.webp' },
  { name: 'the Knight',         file: 'K30_TheKnight_Portrait.webp' },
  { name: 'the Skull Merchant', file: 'K31_TheSkullMerchant_Portrait.webp' },
  { name: 'the Singularity',    file: 'K32_TheSingularity_Portrait.webp' },
  { name: 'the Xenomorph',      file: 'K33_TheXenomorph_Portrait.webp' },
  { name: 'the Good Guy',       file: 'K34_TheGoodGuy_Portrait.webp' },
  { name: 'the Unknown',        file: 'K35_TheUnknown_Portrait.webp' },
  { name: 'the Lich',           file: 'K36_TheLich_Portrait.webp' },
  { name: 'the Dark Lord',      file: 'K37_TheDarkLord_Portrait.webp' },
  { name: 'the Houndmaster',    file: 'K38_TheHoundmaster_Portrait.webp' },
  { name: 'the Ghoul',          file: 'K39_TheGhoul_Portrait.webp' },
  { name: 'the Animatronic',    file: 'K40_TheAnimatronic_Portrait.webp' },
  { name: 'the Krasue',         file: 'K41_TheKrasue_Portrait.webp' },
];

export const KILLER_NAMES: string[] = KILLERS.map((k) => k.name);

export function killerAvatarUrl(name: string): string | null {
  const entry = KILLERS.find((k) => k.name === name);
  return entry ? `avatars/${entry.file}` : null;
}
