mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-02-04 14:53:12 +08:00
bug fix
This commit is contained in:
@@ -445,8 +445,8 @@ class App{
|
||||
});
|
||||
}
|
||||
|
||||
get times() {return localStorage.times || 0;}
|
||||
set times(v) {localStorage.times = parseInt(v) || 0};
|
||||
get times() {return JSON.parse(localStorage.times||'') || 0;}
|
||||
set times(v) {localStorage.times = JSON.stringify(parseInt(v) || 0)};
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -99,11 +99,11 @@ class Life {
|
||||
}
|
||||
|
||||
talentRandom() {
|
||||
return this.#talent.talentRandom(localStorage.extendTalent);
|
||||
return this.#talent.talentRandom(JSON.parse(localStorage.extendTalent||''));
|
||||
}
|
||||
|
||||
talentExtend(talentId) {
|
||||
localStorage.extendTalent = talentId;
|
||||
localStorage.extendTalent = JSON.stringify(talentId);
|
||||
}
|
||||
|
||||
getRecord() {
|
||||
|
||||
Reference in New Issue
Block a user