Made user pay for amoire locally (#9673)

This commit is contained in:
Keith Holliday 2017-12-06 10:50:15 -05:00 committed by GitHub
parent 2f956252ab
commit c02aadfac4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,20 +53,12 @@ async function buyArmoire (store, params) {
const item = resData.armoire;
const isExperience = item.type === 'experience';
if (item.type === 'gear') {
store.state.user.data.items.gear.owned[item.dropKey] = true;
}
store.state.user.data.stats.gp -= armoire.value;
// @TODO: We might need to abstract notifications to library rather than mixin
store.dispatch('snackbars:add', {
title: '',
text: `- ${armoire.value}`,
type: 'gp',
icon: '',
sign: '-',
timeout: true,
});
store.dispatch('snackbars:add', {
title: '',
text: isExperience ? item.value : item.dropText,