Make decorating button show what layer is being/to be decorated

This commit is contained in:
thepaperpilot 2022-12-18 15:10:54 -06:00
parent b18acbdcd2
commit aed2bb93ae

View file

@ -335,7 +335,13 @@ const layer = createLayer(id, () => {
const masteryReq = computed(() => Decimal.pow(2, masteredDays.value).times(30));
const enterMasteryButton = createClickable(() => ({
display: () => ({
title: main.isMastery.value ? "Stop Decorating" : "Begin Decoration",
title: `${main.isMastery.value ? "Stop Decorating" : "Begin Decorating"} ${
Object.values(layers).find(
layer =>
unref((layer as any).mastered) === false &&
!["Elves", "Management"].includes(unref(layer?.name ?? ""))
)?.name
}`,
description: jsx(() => {
return (
<>