This commit is contained in:
33333-33333 2026-07-05 18:01:36 +09:00
commit 8f9f5b5100
108 changed files with 2139 additions and 1500 deletions

View file

@ -174,8 +174,16 @@
if ((tempStatus.harmExcess || 0) > 0) {
const harm = tempStatus.harmExcess || 0;
t.energy -= dt * (0.10 + harm * 0.075 + harm * harm * 0.006);
t.lastDamageCause = tempStatus.direction === "cold" ? "\u51CD\u7D50" : "\u71B1\u4E2D\u75C7";
t.lastTemperatureDamageAt = t.world?.time || 0;
const tempDamageCause = tempStatus.direction === "cold" ? "\u51CD\u7D50" : "\u71B1\u4E2D\u75C7";
const tempDamageAt = t.world?.time || 0;
t.lastDamageCause = tempDamageCause;
t.lastDamageAmount = Math.max(Number(t.lastDamageAmount || 0) || 0, harm);
t.lastDamageAt = tempDamageAt;
if (harm >= 1.5 || t.energy <= 30 || t.stress >= 104) {
t.lastMajorDamageCause = tempDamageCause;
t.lastMajorDamageAt = tempDamageAt;
}
t.lastTemperatureDamageAt = tempDamageAt;
}
const phase = t.world.lightLevel();