feat(event): Winter Wonderland 2021 and Gift-One-Get-One Promotion

This commit is contained in:
Sabe Jones
2020-12-10 16:53:37 -06:00
parent 74ebcf919e
commit 53f19c4da3
282 changed files with 681 additions and 198 deletions
@@ -209,7 +209,12 @@ export default {
...mapState({
user: 'user.data',
classes: 'content.classes',
currentEvent: 'worldState.data.currentEvent',
}),
eventName () {
if (!this.currentEvent || !this.currentEvent.event || this.currentEvent.season === 'normal') return null;
return this.currentEvent.event.replace('NoPromo', '');
},
},
methods: {
close () {
@@ -224,6 +229,14 @@ export default {
},
classGear (heroClass) {
if (heroClass === 'rogue') {
if (this.eventName) {
return {
armor: `armor_special_${this.eventName}Rogue`,
head: `head_special_${this.eventName}Rogue`,
shield: `shield_special_${this.eventName}Rogue`,
weapon: `weapon_special_${this.eventName}Rogue`,
};
}
return {
armor: 'armor_rogue_5',
head: 'head_rogue_5',
@@ -231,12 +244,27 @@ export default {
weapon: 'weapon_rogue_6',
};
} if (heroClass === 'wizard') {
if (this.eventName) {
return {
armor: `armor_special_${this.eventName}Mage`,
head: `head_special_${this.eventName}Mage`,
weapon: `weapon_special_${this.eventName}Mage`,
};
}
return {
armor: 'armor_wizard_5',
head: 'head_wizard_5',
weapon: 'weapon_wizard_6',
};
} if (heroClass === 'healer') {
if (this.eventName) {
return {
armor: `armor_special_${this.eventName}Healer`,
head: `head_special_${this.eventName}Healer`,
shield: `shield_special_${this.eventName}Healer`,
weapon: `weapon_special_${this.eventName}Healer`,
};
}
return {
armor: 'armor_healer_5',
head: 'head_healer_5',
@@ -244,6 +272,14 @@ export default {
weapon: 'weapon_healer_6',
};
}
if (this.eventName) {
return {
armor: `armor_special_${this.eventName}Warrior`,
head: `head_special_${this.eventName}Warrior`,
shield: `shield_special_${this.eventName}Warrior`,
weapon: `weapon_special_${this.eventName}Warrior`,
};
}
return {
armor: 'armor_warrior_5',
head: 'head_warrior_5',