This commit is contained in:
33333-33333 2026-06-23 11:48:11 +09:00
commit db81a509cf
6 changed files with 56 additions and 21 deletions

View file

@ -79,8 +79,7 @@
this.fallMax = Math.max(this.fallMax || 0, this.fallTimer);
}
if (Number.isFinite(opts.stress) && opts.stress > 0) {
if (this.addStress) this.addStress(opts.stress, { threshold: opts.stressThreshold ?? 8, duration: opts.stressDuration ?? 4.2 });
else this.stress = clamp((this.stress || 0) + opts.stress, 0, 130);
global.TarinaiNeedSystem?.addNeedShock?.(this, { safety: opts.stress }, threat);
}
if (opts.bubble) this.bubble?.(opts.bubble, opts.bubbleCooldown ?? 0.9, opts.bubbleColor || "rgba(84,66,86,0.80)");
this.lastPanicCause = opts.cause || opts.reason || this.thought || "panic";