fix(stats): bump level cap to 9999 and related corrections

This commit is contained in:
Sabe Jones
2021-03-11 16:44:34 -06:00
parent d7aa448676
commit d2795f3ac9
7 changed files with 19 additions and 5 deletions

View File

@@ -114,6 +114,7 @@
<script>
import clone from 'lodash/clone';
import { MAX_LEVEL_HARD_CAP } from '@/../../common/script/constants';
import { mapState } from '@/libs/store';
export default {
@@ -151,7 +152,9 @@ export default {
return;
}
if (this.restoreValues.stats.lvl > 999) this.restoreValues.stats.lvl = 999;
if (this.restoreValues.stats.lvl > MAX_LEVEL_HARD_CAP) {
this.restoreValues.stats.lvl = MAX_LEVEL_HARD_CAP;
}
const userChangedLevel = this.restoreValues.stats.lvl !== this.user.stats.lvl;
const userDidNotChangeExp = this.restoreValues.stats.exp === this.user.stats.exp;