From 66ff040e38b3394e0aef1c109916154b5e9cceb2 Mon Sep 17 00:00:00 2001 From: Tesseract1234567890 Date: Fri, 4 Jun 2021 11:59:23 -0400 Subject: [PATCH] Attempt at fixing Int. not resetting on b1t_flum3.exe usage --- src/RedPill.js | 3 +++ src/ui/CharacterInfo.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/RedPill.js b/src/RedPill.js index 987a49371..b008844d1 100644 --- a/src/RedPill.js +++ b/src/RedPill.js @@ -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"); diff --git a/src/ui/CharacterInfo.tsx b/src/ui/CharacterInfo.tsx index 04f29e4a0..91f335f8f 100644 --- a/src/ui/CharacterInfo.tsx +++ b/src/ui/CharacterInfo.tsx @@ -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 Intelligence: {numeralWrapper.formatSkill(p.intelligence)}