Skip to content
Permalink
Browse files

fix lint / always show mysterybox

  • Loading branch information
negue committed Sep 1, 2017
1 parent db02c65 commit ccedb9fdceb1731253c0af3976a3c22563fbceec
Showing with 7 additions and 2 deletions.
  1. +6 −1 website/client/components/inventory/items/index.vue
  2. +1 −1 website/server/models/user/schema.js
@@ -291,7 +291,7 @@ export default {
let specialArray = itemsByType.special;
if (this.user.purchased.plan.mysteryItems.length) {
if (this.user.purchased.plan.customerId) {
specialArray.push({
key: 'mysteryItem',
class: `inventory_present inventory_present_${moment().format('MM')}`,
@@ -390,11 +390,16 @@ export default {
if (item.key === 'timeTravelers') {
this.$router.push({name: 'time'});
} else if (item.key === 'mysteryItem') {
if (item.quantity === 0)
return;
let result = await this.$store.dispatch('user:openMysteryItem');
let openedItem = result.data.data;
let text = this.content.gear.flat[openedItem.key].text();
this.drop(this.$t('messageDropMysteryItem', {dropText: text}), openedItem);
item.quantity--;
this.$forceUpdate();
} else {
this.selectedSpell = item;
}
@@ -439,7 +439,7 @@ let schema = new Schema({
skin: {type: String, default: '915533'},
shirt: {type: String, default: 'blue'},
timezoneOffset: {type: Number, default: 0},
sound: {type: String, default: 'rosstavoTheme', enum: ['off', ...shared.content.audioThemes ]},
sound: {type: String, default: 'rosstavoTheme', enum: ['off', ...shared.content.audioThemes]},
chair: {type: String, default: 'none'},
timezoneOffsetAtLastCron: Number,
language: String,

0 comments on commit ccedb9f

Please sign in to comment.
You can’t perform that action at this time.