aaa
This commit is contained in:
parent
2e90add2e1
commit
db81a509cf
6 changed files with 56 additions and 21 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue