BUGFIX: Intelligence data is incorrectly migrated when Intelligence is not unlocked (#2660)

This commit is contained in:
catloversg
2026-04-15 05:20:01 +07:00
committed by GitHub
parent c5536d252b
commit 956e00f789
7 changed files with 44 additions and 2 deletions
+7
View File
@@ -637,4 +637,11 @@ Error: ${e}`,
if (ver < 48) {
showAPIBreaks("3.0.0", breakingChanges300);
}
if (ver < 49 && Player.sourceFileLvl(5) === 0 && Player.bitNodeN !== 5) {
for (const person of [Player, ...Player.sleeves]) {
person.persistentIntelligenceData.exp = 0;
person.exp.intelligence = 0;
person.skills.intelligence = 0;
}
}
}