hm
This commit is contained in:
parent
7455d630fc
commit
4d3fc2cd47
84 changed files with 3429 additions and 3480 deletions
|
|
@ -435,13 +435,16 @@
|
|||
this.lastPanicCause = "burning";
|
||||
this.lastPanicDetail = burnText;
|
||||
this.thought = burnText;
|
||||
this.burnTurnTimer = Math.max(0, Number(this.burnTurnTimer || 0) - dt);
|
||||
if (this.burnTurnTimer <= 0) {
|
||||
this.burnWanderAngle = deterministicAngle(this.world, "tarinai-burn-run-angle", this, Math.floor((this.world?.time || 0) * 5));
|
||||
this.burnTurnTimer = deterministicRange(this.world, "tarinai-burn-run-turn", 0.10, 0.34, this);
|
||||
} else {
|
||||
this.burnWanderAngle += deterministicRange(this.world, "tarinai-burn-run-jitter", -8.0, 8.0, this) * dt;
|
||||
}
|
||||
globalThis.TarinaiBurnMotionUtil?.updateBurnWanderAngle(this, dt, {
|
||||
angleKey: "tarinai-burn-run-angle",
|
||||
turnKey: "tarinai-burn-run-turn",
|
||||
jitterKey: "tarinai-burn-run-jitter",
|
||||
bucketScale: 5,
|
||||
turnMin: 0.10,
|
||||
turnMax: 0.34,
|
||||
jitterMin: -8.0,
|
||||
jitterMax: 8.0,
|
||||
});
|
||||
ax += Math.cos(this.burnWanderAngle || this.wanderAngle || 0) * baseSpeed * 3.15;
|
||||
ay += Math.sin(this.burnWanderAngle || this.wanderAngle || 0) * baseSpeed * 3.15;
|
||||
} else {
|
||||
|
|
@ -641,7 +644,6 @@
|
|||
bed.unreachableUntil = 0;
|
||||
bed.abandonedById = this.id || "";
|
||||
bed.abandonedUntil = (this.world?.time || 0) + 90;
|
||||
bed.abandonedReason = reason;
|
||||
bed.carriedById = "";
|
||||
this.target = null;
|
||||
this.targetKey = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue