Add entity

This commit is contained in:
Aslan 2026-01-23 08:55:02 -05:00
parent f25c637d7b
commit 44510884fe
2 changed files with 33 additions and 2 deletions

View file

@ -40,6 +40,7 @@ export type TFullNPC = INPC & INPCData;
export enum NPC {
BECKY = "BECKY",
TATO = "TATO",
}
export enum NpcType {
@ -71,4 +72,27 @@ export const npcBecky: INPC = {
type: NpcType.QUEST_GIVER,
};
export const npcs = [npcBecky];
export const npcTato: INPC = {
id: NPC.TATO,
name: "Tato",
description: "A ",
race: Race.TROLL,
location: Location.HIGHMERE_TAVERN,
inventory: {
items: [],
},
experience: 500,
vitality: 25,
strength: 25,
endurance: 5,
agility: 15,
dexterity: 30,
intelligence: 5,
wisdom: 10,
stealth: 5,
charisma: 20,
lockpicking: 0,
type: NpcType.QUEST_GIVER,
};
export const npcs = [npcBecky, npcTato];

View file

@ -7,6 +7,7 @@ export interface IRace {
export enum Race {
HUMAN = "HUMAN",
GIANT = "GIANT",
TROLL = "TROLL",
ELF = "ELF",
}
@ -22,10 +23,16 @@ export const raceGiant: IRace = {
description: "Basically a human, but of an extreme size and strength",
};
export const raceTroll: IRace = {
id: Race.TROLL,
name: "Troll",
description: "Tall and green creature",
};
export const raceElf: IRace = {
id: Race.ELF,
name: "Elf",
description: "A weird creature with pointy ears",
};
export const races = [raceHuman, raceGiant, raceElf];
export const races = [raceHuman, raceGiant, raceTroll, raceElf];