mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 08:31:35 +00:00
Fixed days being displayed as complete too early
This commit is contained in:
parent
e176c1ae0d
commit
df29a309ee
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
opened,
|
||||
shouldNotify,
|
||||
onOpenLore() {
|
||||
const completed = main.day.value > day - 1;
|
||||
const completed = main.day.value > day;
|
||||
loreScene.value = completed ? day - 1 : -1;
|
||||
const title = unref(layers[layer ?? "trees"]?.name ?? "");
|
||||
loreTitle.value = completed ? `${title} - Completed!` : title;
|
||||
|
|
Loading…
Reference in a new issue