Skip to content

Commit

Permalink
fix: make the names very fun
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper573 committed Feb 2, 2025
1 parent 7cf913a commit 7d479ad
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions apps/server/src/modules/npc/npcSpawnBehavior.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { names, uniqueNamesGenerator } from "unique-names-generator";
import {
names,
uniqueNamesGenerator,
adjectives,
animals,
} from "unique-names-generator";
import type { StateAccess } from "@mp/sync/server";
import type { TickEventHandler } from "@mp/time";
import type { Tile } from "@mp/std";
Expand Down Expand Up @@ -63,7 +68,9 @@ export function createNpcInstance(
): NPCInstance {
const id = uuid();
const name = uniqueNamesGenerator({
dictionaries: [randomAndCustomNames],
dictionaries: [adjectives, animals, randomAndCustomNames],
separator: " ",
style: "capital",
seed: id,
});
return {
Expand Down

0 comments on commit 7d479ad

Please sign in to comment.