Skip to content

Commit

Permalink
feat: add in a mob data viewer page
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHerber committed Nov 24, 2024
1 parent 148fea9 commit 8ecd7ee
Show file tree
Hide file tree
Showing 6 changed files with 950 additions and 25 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@zerodevx/svelte-toast": "0.9.6",
"@sveltejs/adapter-auto": "3.3.1",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "2.8.2",
"@sveltejs/vite-plugin-svelte": "^4.0.1",
"@sveltejs/adapter-static": "^3.0.6",
"axios": "^1.7.7",
"@types/node": "^22.9.3",
"@zerodevx/svelte-toast": "0.9.6",
"autoprefixer": "^10.4.20",
"axios": "^1.7.7",
"flowbite": "^2.5.2",
"flowbite-svelte": "^0.47.3",
"flowbite-svelte-icons": "^1.6.2",
Expand Down
60 changes: 38 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions src/lib/models/mob-data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export interface IMobData {
friendlyName: string;
netId: MobNetIdEnum;
entries: IMobEntry[];
}

export interface IMobEntry {
scale?: number | null;
prefix: string;
weight: number;
stats: IMobStats;
affixes: IMobEntryAffix[];
requirements: string;
}

export interface IMobEntryAffix {
name: string;
}

export interface IMobStats {
level: number;
experience: number;
}
Loading

0 comments on commit 8ecd7ee

Please sign in to comment.