mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
removed loading tip number logic
This commit is contained in:
@@ -293,7 +293,6 @@ export default {
|
|||||||
audioSuffix: null,
|
audioSuffix: null,
|
||||||
|
|
||||||
loading: true,
|
loading: true,
|
||||||
currentTipNumber: 0,
|
|
||||||
bannerHidden: false,
|
bannerHidden: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -306,15 +305,6 @@ export default {
|
|||||||
castingSpell () {
|
castingSpell () {
|
||||||
return this.$store.state.spellOptions.castingSpell;
|
return this.$store.state.spellOptions.castingSpell;
|
||||||
},
|
},
|
||||||
currentTip () {
|
|
||||||
const numberOfTips = 35 + 1;
|
|
||||||
const min = 1;
|
|
||||||
const randomNumber = Math.random() * (numberOfTips - min) + min;
|
|
||||||
const tipNumber = Math.floor(randomNumber);
|
|
||||||
this.currentTipNumber = tipNumber; // eslint-disable-line vue/no-side-effects-in-computed-properties, max-len
|
|
||||||
|
|
||||||
return this.$t(`tip${tipNumber}`);
|
|
||||||
},
|
|
||||||
showRestingBanner () {
|
showRestingBanner () {
|
||||||
return !this.bannerHidden && this.user && this.user.preferences.sleep;
|
return !this.bannerHidden && this.user && this.user.preferences.sleep;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user