summaryrefslogtreecommitdiff
path: root/resources/js/classes/Item.js
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-23 20:29:07 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-23 20:29:07 +0200
commit7b1c251fcb085dc37de439ea1137373f1905d82e (patch)
tree32e3f2cd4367507726af6d0172e9621a37dff576 /resources/js/classes/Item.js
parent4dd1a344c6474087a3f8782dd54f5c7b4acc67ed (diff)
areas and capture and more
Diffstat (limited to 'resources/js/classes/Item.js')
-rw-r--r--resources/js/classes/Item.js8
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 () {