adds buy/sell endpoints
This commit is contained in:
@@ -22,10 +22,12 @@ export default {
|
||||
|
||||
},
|
||||
buyItems(items) {
|
||||
this.notifications.push(`Would buy ${items.length} items`);
|
||||
AppStorage.buyItems(items)
|
||||
.then(_ => this.notifications.push(`Bought ${items.length} items`))
|
||||
},
|
||||
sellItems (items) {
|
||||
this.notifications.push(`Would sell ${items.length} items`);
|
||||
AppStorage.sellItems(items)
|
||||
.then(_ => this.notifications.push(`Sold ${items.length} items`))
|
||||
},
|
||||
parseLoot (items) {
|
||||
this.loot = [];
|
||||
|
||||
Reference in New Issue
Block a user