add record

This commit is contained in:
Vick Scarlet
2021-08-17 21:13:51 +08:00
parent b0e9cbdb0a
commit 495d4a39ec
4 changed files with 99 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ class Life {
this.#triggerTalents = new Set();
this.#property.restart(allocation);
this.doTalent();
this.#property.record();
}
getTalentAllocationAddition(talents) {
@@ -39,6 +40,7 @@ class Life {
const talentContent = this.doTalent(talent);
const eventContent = this.doEvent(this.random(event));
this.#property.record();
const isEnd = this.#property.isEnd();
@@ -98,7 +100,10 @@ class Life {
talentRandom() {
return this.#talent.talentRandom();
}
getRecord() {
return this.#property.getRecord();
}
}