This commit is contained in:
33333-33333 2026-06-30 13:40:36 +09:00
commit ad2cc76429
34 changed files with 616 additions and 365 deletions

View file

@ -141,7 +141,7 @@ TEXT_CATALOG.stateLabel = function stateLabelFromCatalog(s, t = null) {
TEXT_CATALOG.temperatureEndureText = function temperatureEndureText(t = null) {
if (!t || !t.world) return "";
const status = t.temperatureStatus || t.world.temperatureStatusFor?.(t.feltTemperature ?? t.tempComfort ?? t.world.temperatureAt?.(t.x, t.y) ?? (CONFIG.standardTemperature ?? 15));
const status = t.temperatureStatus || t.world.temperatureStatusFor?.(t.feltTemperature ?? t.tempComfort ?? t.world.temperatureAt?.(t.x, t.y, t) ?? (CONFIG.standardTemperature ?? 15), t);
if (!status || status.comfortable || (status.discomfort || 0) <= 0.5) return "";
if (t.world.hasReachableComfortTemperatureSpot?.(t)) return "";
return status.direction === "cold" ? "寒さに耐えている。" : "暑さに耐えている。";