sendou.ink/app/utils/team-name.ts
Kalle fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +02:00

13 lines
464 B
TypeScript

import { ADJECTIVES, SUBTITLES_PLURALIZED } from "./team-name-data";
/** Generates a random team name by combining a Splatoon 3 title adjective with a pluralized subtitle e.g. "Prestigious Heat Haters" */
export function randomTeamName() {
const adjective = ADJECTIVES[Math.floor(Math.random() * ADJECTIVES.length)];
const subtitle =
SUBTITLES_PLURALIZED[
Math.floor(Math.random() * SUBTITLES_PLURALIZED.length)
];
return `${adjective} ${subtitle}`;
}