diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-31 20:23:06 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-31 20:23:06 +0200 |
commit | c657c77d0cf49afba627b93848e1915e2ce7d3ff (patch) | |
tree | 5d96a65df277f52558cd5ff84f2fefbf4480a926 /resources/js/db.js | |
parent | 7f6ab8779bd143b1b5f3465e3681abcbc113d19d (diff) |
story and npcs
Diffstat (limited to 'resources/js/db.js')
-rw-r--r-- | resources/js/db.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/js/db.js b/resources/js/db.js index 3c8be05..35ed7bd 100644 --- a/resources/js/db.js +++ b/resources/js/db.js @@ -171,10 +171,10 @@ async function fetchItem (slug) { */ async function fetchNpc (slug) { if (! DB.npcs[slug]) { - DB.npcs[slug] = await fetchDBData(`/modules/tuxemon/mods/tuxemon/db/npc/${slug}.json`).then((response) => response.json()); + DB.npcs[slug] = await fetchDBData(`/db/_generated/npc/${slug}.json`).then((response) => response.json()); } - return DB.npcs[slug]; + return new Npc(slug); } /** |