class Item { constructor (slug) { this.slug = slug; } get name () { return slugToName(this.slug); } get category () { return DB.items[this.slug].category; } get type () { return DB.items[this.slug].type; } get sprite () { return DB.items[this.slug].sprite; } get conditions () { return DB.items[this.slug].conditions; } get effects () { return DB.items[this.slug].effects; } }