mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-10 07:45:50 +00:00
Update cwb_lorebookManager.js
This commit is contained in:
@@ -208,11 +208,13 @@ export async function updateCharacterRosterLorebookEntry(processedCharacterNames
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (Array.isArray(existingRosterEntry.keys)) {
|
||||||
const floorRangeKey = existingRosterEntry.keys.find(k => /^\d+-\d+$/.test(k));
|
const floorRangeKey = existingRosterEntry.keys.find(k => /^\d+-\d+$/.test(k));
|
||||||
if (floorRangeKey) {
|
if (floorRangeKey) {
|
||||||
[oldStartFloor] = floorRangeKey.split('-').map(Number);
|
[oldStartFloor] = floorRangeKey.split('-').map(Number);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
processedCharacterNames.forEach(name => existingNames.add(name.trim()));
|
processedCharacterNames.forEach(name => existingNames.add(name.trim()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user