Added effects engine.

This commit is contained in:
sarah committed 2026-09-05 16:50:52 +02:00
1 parent 132aba0b9a
commit 9de8af0d2b
9 files changed
+1684 -12

No files matched your search

+50 -1
View File
@@ -1669,11 +1669,35 @@ function CreatePlotElement(
Plant
);
const CooldownState =
Progress >= 1 &&
typeof GetFunctionalPlantCooldownDisplayState ===
"function"
? GetFunctionalPlantCooldownDisplayState(
Plot,
Plant,
GetSimulationTime(
GameSave
)
)
: null;
const BorderProgress =
CooldownState === null
? Progress
: CooldownState.Progress;
Tile.style.setProperty(
"--GrowthProgress",
`${Progress * 100}%`
`${BorderProgress * 100}%`
);
if (CooldownState !== null) {
Tile.classList.add(
"GardenPlotFunctionalCooldown"
);
}
const ImagePath =
GetPlantImage(
@@ -2004,6 +2028,31 @@ function CreateGardenPlotTimer(
}
if (
Progress >= 1 &&
typeof GetFunctionalPlantCooldownDisplayState ===
"function"
) {
const CooldownState =
GetFunctionalPlantCooldownDisplayState(
Plot,
Plant,
GetSimulationTime(
GameSave
)
);
if (CooldownState !== null) {
Timer.textContent =
FormatGardenRemainingTime(
CooldownState.Remaining
);
return Timer;
}
}
if (Progress >= 1) {
Timer.textContent =
"Ready";