Skip to content

Commit

Permalink
DataSnapshot utilities to save/load gamestate
Browse files Browse the repository at this point in the history
  • Loading branch information
dmchurch committed Dec 12, 2023
1 parent 927cd14 commit 1c498d8
Show file tree
Hide file tree
Showing 8 changed files with 806 additions and 11 deletions.
2 changes: 1 addition & 1 deletion actionLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ActionLog {

loadRecent() {
this.earliestShownEntry ??= this.entries.length;
while (this.earliestShownEntry > 0 && this.entries[this.earliestShownEntry - 1].repeatable) {
while (this.earliestShownEntry > 0 && (this.entries[this.earliestShownEntry - 1].repeatable || this.earliestShownEntry > this.entries.length - 3)) {
view.requestUpdate("updateActionLogEntry", --this.earliestShownEntry);
}
}
Expand Down
Loading

0 comments on commit 1c498d8

Please sign in to comment.