mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-04-04 12:22:54 +08:00
update framework
This commit is contained in:
@@ -18,13 +18,13 @@ class Life {
|
||||
#achievement;
|
||||
#triggerTalents;
|
||||
|
||||
async initial() {
|
||||
async initial(loadJSON) {
|
||||
const [age, talents, events, achievements] = await Promise.all([
|
||||
json('age'),
|
||||
json('talents'),
|
||||
json('events'),
|
||||
json('achievement'),
|
||||
])
|
||||
loadJSON('age'),
|
||||
loadJSON('talents'),
|
||||
loadJSON('events'),
|
||||
loadJSON('achievement'),
|
||||
]);
|
||||
this.#property.initial({age});
|
||||
this.#talent.initial({talents});
|
||||
this.#event.initial({events});
|
||||
|
||||
Reference in New Issue
Block a user