mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Attempt at making Int. available from start of BN5
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user