aa
This commit is contained in:
parent
f941200504
commit
ad2cc76429
34 changed files with 616 additions and 365 deletions
|
|
@ -128,7 +128,7 @@ const HEALTH = (() => {
|
|||
}
|
||||
if (direct && direct !== CAUSES.stress) return direct;
|
||||
|
||||
const tempStatus = t.temperatureStatus || t.world?.temperatureStatusFor?.(t.feltTemperature ?? t.tempComfort ?? (CONFIG.standardTemperature ?? 15)) || null;
|
||||
const tempStatus = t.temperatureStatus || t.world?.temperatureStatusFor?.(t.feltTemperature ?? t.tempComfort ?? (CONFIG.standardTemperature ?? 15), t) || null;
|
||||
const recentTemperatureDamageAt = Number(t.lastTemperatureDamageAt || -999);
|
||||
const recentTemperatureDamage = (t.world?.time || 0) - recentTemperatureDamageAt <= 36;
|
||||
if (recentTemperatureDamage && tempStatus && (tempStatus.harmExcess || 0) > 0 && (t.energy <= 26 || t.stress >= 112 || t.mood <= 18)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue