diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-09-01 22:32:45 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-09-01 22:32:45 +0200 |
commit | 1d29ee6d87d3794a9319bca5bf36afdfe176072c (patch) | |
tree | 1e7e89ca87afd313b1806fcc80d456796b0af6db /resources/js/classes/Npc.js | |
parent | 6b3a8aef783368d0ed9a2c104eea3ff5cf9984da (diff) |
translations with fallback
Diffstat (limited to 'resources/js/classes/Npc.js')
-rw-r--r-- | resources/js/classes/Npc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/js/classes/Npc.js b/resources/js/classes/Npc.js index 6121bce..82dba7e 100644 --- a/resources/js/classes/Npc.js +++ b/resources/js/classes/Npc.js @@ -5,7 +5,7 @@ class Npc { constructor (slug) { this.slug = slug; - this.name = translate(slug) || slugToName(slug.replace('spyder_', '')); + this.name = translate(slug); this.spriteName = DB.npcs[slug]?.template[0].sprite_name; } |