mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-26 21:27:48 -05:00
13 lines
416 B
TypeScript
13 lines
416 B
TypeScript
import { ADJECTIVES, SUBTITLES_PLURALIZED } from "./team-name-data";
|
|
|
|
/** Splatoon 3 title adjective + 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}`;
|
|
}
|