Attempt at making Int. available from start of BN5

This commit is contained in:
Tesseract1234567890 2021-06-04 12:14:04 -04:00
parent fc5e0ea6a0
commit f9ff45fbed

@ -305,6 +305,13 @@ function createBitNodeYesNoEventListener(newBitNode, destroyedBitNode, flume=fal
yesBtn.addEventListener("click", function() {
if (!flume) {
giveSourceFile(destroyedBitNode);
if (newBitNode === 5) {
if(Player.intelligence === 0) {
Player.intelligence = 1;
Player.updateSkillLevels();
}
}
} else {
// If player used flume, subtract 300 int exp. The prestigeSourceFile()
// function below grants 300 int exp, so this allows sets net gain to 0
@ -312,6 +319,13 @@ function createBitNodeYesNoEventListener(newBitNode, destroyedBitNode, flume=fal
if(SourceFileFlags[5] === 0) {
Player.intelligence = 0;
Player.intelligence_exp = 0;
Player.updateSkillLevels();
}
if (newBitNode === 5) {
if(Player.intelligence === 0) {
Player.intelligence = 1;
Player.updateSkillLevels();
}
}
}
redPillFlag = false;