This commit is contained in:
33333-33333 2026-07-18 22:15:26 +09:00
commit d163ceb291
76 changed files with 1385 additions and 524 deletions

View file

@ -25,13 +25,13 @@
return fixed || null;
}
function enforceFixedWeather(worldRef) {
function enforceFixedWeather(worldRef, options = {}) {
const fixed = fixedWeatherFor(worldRef);
if (!fixed || !worldRef) return false;
const previous = canonicalWeather(worldRef.weather || "sunny");
worldRef.weather = canonicalWeather(fixed);
worldRef.nextWeatherChange = resetTimer();
if (previous !== worldRef.weather) {
if (previous !== worldRef.weather && options.silentLog !== true) {
worldRef.log?.(`\u5929\u6C17: ${weatherLabel(worldRef.weather)}`);
}
return true;