diff options
Diffstat (limited to 'resources/js/classes/Item.js')
-rw-r--r-- | resources/js/classes/Item.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/js/classes/Item.js b/resources/js/classes/Item.js index 9da6a92..40089f2 100644 --- a/resources/js/classes/Item.js +++ b/resources/js/classes/Item.js @@ -20,7 +20,13 @@ class Item { } get sprite () { - return DB.items[this.slug].sprite; + const sprite = DB.items[this.slug].sprite; + + if (sprite) { + return '/modules/tuxemon/mods/tuxemon/' + sprite; + } + + return ''; } get conditions () { |