aa
This commit is contained in:
parent
f941200504
commit
ad2cc76429
34 changed files with 616 additions and 365 deletions
|
|
@ -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" ? "寒さに耐えている。" : "暑さに耐えている。";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue