e
This commit is contained in:
parent
f657b6a4a4
commit
d163ceb291
76 changed files with 1385 additions and 524 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue