Attempt at fixing Int. not resetting on b1t_flum3.exe usage

This commit is contained in:
Tesseract1234567890 2021-06-04 11:59:23 -04:00
parent a1e0d40963
commit 66ff040e38
2 changed files with 4 additions and 1 deletions

@ -309,6 +309,9 @@ function createBitNodeYesNoEventListener(newBitNode, destroyedBitNode, flume=fal
// If player used flume, subtract 300 int exp. The prestigeSourceFile()
// function below grants 300 int exp, so this allows sets net gain to 0
Player.gainIntelligenceExp(-300);
if(SourceFileFlags[5] === 0) {
Player.intelligence = 0;
}
}
redPillFlag = false;
var container = document.getElementById("red-pill-content");

@ -80,7 +80,7 @@ export function CharacterInfo(p: IPlayer): React.ReactElement {
}
function Intelligence(): React.ReactElement {
if (p.intelligence > 0) {
if (p.intelligence > 0 && (p.bitNodeN === 5 || SourceFileFlags[5] > 0)) {
return <tr key="5">
<td>Intelligence:</td>
<td style={{textAlign: 'right'}}>{numeralWrapper.formatSkill(p.intelligence)}</td>