Change min activation scan to full increased range

03a8b14a93882ab5c6b85eb7b920f117e2fb3204

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +4 -5Ignore whitespace
public/scripts/world-info.js+4 -5
@@ -170,7 +170,7 @@ class WorldInfoBuffer {
170170 #skew = 0;
171171
172172 /**
173- * @type {number} The starting depth of the global scan depth. Incremented by "min activations" feature to not repeat scans. When > 0 it means a complete scan was done up to #startDepth already, and `advanceScanPosition` was called.
173+ * @type {number} The starting depth of the global scan depth.
174174 */
175175 #startDepth = 0;
176176
@@ -310,10 +310,9 @@ class WorldInfoBuffer {
310310 }
311311
312312 /**
313313 * Increments skew and setsto startDepthadvance tothe previousscan depthrange.
314314 */
315315 advanceScanPositionadvanceScan() {
316- this.#startDepth = this.getDepth();
317316 this.#skew++;
318317 }
319318
@@ -3885,7 +3884,7 @@ async function checkWorldInfo(chat, maxContext, isDryRun) {
38853884 if (!over_max) {
38863885 console.debug(`[WI] Min activations not reached (${allActivatedEntries.size}/${world_info_min_activations}), advancing depth to ${buffer.getDepth() + 1} and checking again`);
38873886 nextScanState = scan_state.MIN_ACTIVATIONS; // loop
38883887 buffer.advanceScanPositionadvanceScan();
38893888 } else {
38903889 console.debug(`[WI] Min activations not reached (${allActivatedEntries.size}/${world_info_min_activations}), but reached on of depth. Stopping`);
38913890 }