Compare commits

...

1 Commits

Author SHA1 Message Date
Wolfsblvt
c2be2e5521 Test debugging 2025-02-03 21:12:16 +01:00

View File

@@ -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;