hm
This commit is contained in:
parent
7455d630fc
commit
4d3fc2cd47
84 changed files with 3429 additions and 3480 deletions
|
|
@ -277,7 +277,6 @@ function retryForcedBehavior(tarinai, behavior = null, reason = "retry") {
|
|||
const entry = forcedBehaviorQueueOf(tarinai).find(e => e && e.uid === forcedId);
|
||||
if (!entry) return false;
|
||||
entry.status = "queued";
|
||||
entry.lastFailedAt = now;
|
||||
entry.failReason = reason;
|
||||
entry.activeSince = 0;
|
||||
if (typeof clearTarinaiForcedBehavior === "function") clearTarinaiForcedBehavior(tarinai);
|
||||
|
|
@ -304,8 +303,7 @@ function processForcedBehaviorQueue(tarinai, world, needs) {
|
|||
} else if (entry.status === "active") {
|
||||
// behavior \u304c\u5916\u90e8\u8981\u56e0\u3067\u6d88\u3048\u305f\u5834\u5408\u306f\u3001\u671f\u9650\u5185\u306a\u3089\u518d\u8a66\u884c\u3078\u623b\u3059\u3002
|
||||
entry.status = "queued";
|
||||
entry.lastFailedAt = now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
queue.sort((a, b) => (Number(b.priority || 0) - Number(a.priority || 0)) || (Number(a.createdAt || 0) - Number(b.createdAt || 0)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue