class Npc { name = ''; spriteName = ''; constructor (slug) { this.slug = slug; this.name = translate(slug) || slugToName(slug.replace('spyder_', '')); this.spriteName = DB.npcs[slug]?.template[0].sprite_name; } get sprite () { return `/modules/tuxemon/mods/tuxemon/gfx/sprites/player/${this.spriteName}.png`; } }