Moving check down for spec adherence

This commit is contained in:
Honey Tree 2024-10-10 12:03:26 -03:00
parent 0d1e96cc17
commit 61ba579fe2

View File

@ -3864,12 +3864,6 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
continue;
}
if (buffer.getExternallyActivated(entry)) {
log('externally activated');
activatedNow.add(buffer.getExternallyActivated(entry));
continue;
}
if (entry.decorators.includes('@@activate')) {
log('activated by @@activate decorator');
activatedNow.add(entry);
@ -3881,6 +3875,12 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
continue;
}
if (buffer.getExternallyActivated(entry)) {
log('externally activated');
activatedNow.add(buffer.getExternallyActivated(entry));
continue;
}
// Now do checks for immediate activations
if (entry.constant) {
log('activated because of constant');