mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Compare commits
1 Commits
wi-interce
...
mordred-te
Author | SHA1 | Date | |
---|---|---|---|
|
c2be2e5521 |
@@ -586,6 +586,8 @@ class WorldInfoTimedEffects {
|
||||
this.#checkTimedEffectOfType('sticky', this.#buffer.sticky, this.#onEnded.sticky.bind(this));
|
||||
this.#checkTimedEffectOfType('cooldown', this.#buffer.cooldown, this.#onEnded.cooldown.bind(this));
|
||||
this.#checkDelayEffect(this.#buffer.delay);
|
||||
|
||||
console.debug('[WI][DEBUG] Timed effects:', this.#buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3970,10 +3972,15 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
|
||||
}
|
||||
}
|
||||
|
||||
console.debug('[WI][DEBUG] entry:', entry);
|
||||
console.debug('[WI][DEBUG] hash:', entry.hash);
|
||||
|
||||
const isSticky = timedEffects.isEffectActive('sticky', entry);
|
||||
const isCooldown = timedEffects.isEffectActive('cooldown', entry);
|
||||
const isDelay = timedEffects.isEffectActive('delay', entry);
|
||||
|
||||
console.debug('[WI][DEBUG] timed effects:', { isSticky, isCooldown, isDelay });
|
||||
|
||||
if (isDelay) {
|
||||
log('suppressed by delay');
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user