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