hhmm
This commit is contained in:
parent
434f07cc4e
commit
16074232aa
40 changed files with 1509 additions and 732 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue