This commit is contained in:
33333-33333 2026-06-25 17:43:24 +09:00
commit 16074232aa
40 changed files with 1509 additions and 732 deletions

View file

@ -394,11 +394,12 @@
},
lowHealthSprite() {
// This is physical weakness only. Stress is handled by the stress sprite branch
// below so high-stress individuals do not incorrectly render as low-health.
const critical = this.hunger > 112 || this.energy < 7;
if (critical) return this.stretchTimer > 0 ? "stretch" : "weak";
const weak = this.hunger > 102 || this.energy < 18;
// 低体力は空腹・眠気だけでなく、健康欲求の悪化や負傷も反映する。
const healthNeed = Number(this.needRaw?.health ?? this.needs?.health ?? 0) || 0;
const hurt = (this.hurtTimer || 0) > 0.10;
const critical = this.hunger > 112 || this.energy < 7 || healthNeed >= 90 || (hurt && this.energy < 20);
if (critical) return "stretch";
const weak = this.hunger > 102 || this.energy < 18 || healthNeed >= 66 || hurt;
if (weak) return "weak";
return null;
},