MISC: Disable effect of SF7.3 and SF10 if player disables them with advanced options (#2019)

* MISC: Disable effect of SF7.3 and SF10 if player disables them with advanced options

* Update based on feedback
This commit is contained in:
catloversg
2025-03-18 06:04:36 +07:00
committed by GitHub
parent 19f859ae87
commit e8f9882e2d
5 changed files with 16 additions and 3 deletions
+4
View File
@@ -147,6 +147,10 @@ export abstract class Person implements IPerson {
console.error("ERROR: NaN passed into Player.gainIntelligenceExp()");
return;
}
/**
* Don't change sourceFileLvl to activeSourceFileLvl. When the player has int level, the ability to gain more int is
* a permanent benefit.
*/
if (Player.sourceFileLvl(5) > 0 || this.skills.intelligence > 0 || Player.bitNodeN === 5) {
this.exp.intelligence += exp;
this.skills.intelligence = Math.floor(this.calculateSkill(this.exp.intelligence, 1));