From 3aabbb7aaa85a466b36a2eb193648e656f41203c Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 16 Mar 2022 15:42:25 -0400 Subject: [PATCH] dont hide int anymore --- doc/source/advancedgameplay/intelligence.rst | 6 ++-- src/BitNode/BitNode.tsx | 4 +-- src/SourceFile/SourceFiles.tsx | 7 ++-- src/ui/CharacterStats.tsx | 3 ++ src/ui/React/CharacterOverview.tsx | 37 +++++++++++++------- 5 files changed, 34 insertions(+), 23 deletions(-) diff --git a/doc/source/advancedgameplay/intelligence.rst b/doc/source/advancedgameplay/intelligence.rst index cd8423bb9..0bdcc15f1 100644 --- a/doc/source/advancedgameplay/intelligence.rst +++ b/doc/source/advancedgameplay/intelligence.rst @@ -6,10 +6,8 @@ Intelligence is a :ref:`stat ` that is unlocked by having :ref:`Source-File 5 ` (i.e. Destroying BitNode-5). Intelligence is unique because it is permanent and persistent. It never gets reset -back to 1. However, gaining Intelligence experience is extremely slow. The methods -of gaining Intelligence exp is also hidden. You won't know when you gain -experience and how much. It is a stat that gradually builds up as you continue -to play the game. +back to 1. However, gaining Intelligence experience is extremely slow. It is a stat +that gradually builds up as you continue to play the game. Intelligence will boost your production for many actions in the game, including: diff --git a/src/BitNode/BitNode.tsx b/src/BitNode/BitNode.tsx index 5f8c493ff..dfd815b9d 100644 --- a/src/BitNode/BitNode.tsx +++ b/src/BitNode/BitNode.tsx @@ -202,8 +202,8 @@ BitNodes["BitNode5"] = new BitNode( Destroying this BitNode will give you Source-File 5, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants you a special new stat called Intelligence. Intelligence is unique because it is permanent and persistent (it never gets reset back to 1). However gaining Intelligence - experience is much slower than other stats, and it is also hidden (you won't know when you gain experience and how - much). Higher Intelligence levels will boost your production for many actions in the game.
+ experience is much slower than other stats. Higher Intelligence levels will boost your production for many actions + in the game.

In addition, this Source-File will unlock the getBitNodeMultipliers() Netscript function and let you start with Formulas.exe, and will also raise all of your hacking-related multipliers by: diff --git a/src/SourceFile/SourceFiles.tsx b/src/SourceFile/SourceFiles.tsx index 9fb8e94be..20cc9f452 100644 --- a/src/SourceFile/SourceFiles.tsx +++ b/src/SourceFile/SourceFiles.tsx @@ -66,10 +66,9 @@ SourceFiles["SourceFile5"] = new SourceFile( <> This Source-File grants a special new stat called Intelligence. Intelligence is unique because it is permanent and persistent (it never gets reset back to 1). However, gaining Intelligence experience is much slower than other - stats, and it is also hidden (you won't know when you gain experience and how much). Higher Intelligence levels - will boost your production for many actions in the game. In addition, this Source-File will unlock the - getBitNodeMultipliers() Netscript function and let you start with Formulas.exe, and will raise all of your - hacking-related multipliers by: + stats. Higher Intelligence levels will boost your production for many actions in the game. In addition, this + Source-File will unlock the getBitNodeMultipliers() Netscript function and let you start with Formulas.exe, and + will raise all of your hacking-related multipliers by:

Level 1: 8% diff --git a/src/ui/CharacterStats.tsx b/src/ui/CharacterStats.tsx index 28b8b1731..0ee401d47 100644 --- a/src/ui/CharacterStats.tsx +++ b/src/ui/CharacterStats.tsx @@ -86,6 +86,9 @@ function Intelligence(): React.ReactElement { {numeralWrapper.formatSkill(player.intelligence)}  + + ({numeralWrapper.formatExp(player.intelligence_exp)} exp) + ); } diff --git a/src/ui/React/CharacterOverview.tsx b/src/ui/React/CharacterOverview.tsx index b3c342665..f57f3b1bb 100644 --- a/src/ui/React/CharacterOverview.tsx +++ b/src/ui/React/CharacterOverview.tsx @@ -33,23 +33,34 @@ interface IProps { } function Intelligence(): React.ReactElement { + const theme = useTheme(); const player = use.Player(); const classes = useStyles(); if (player.intelligence === 0) return <>; + const progress = player.calculateSkillProgress(player.intelligence_exp); + return ( - - - Int  - - - {numeralWrapper.formatSkill(player.intelligence)} - - - - {/*Hook for player scripts*/} - - - + <> + + + Int  + + + {numeralWrapper.formatSkill(player.intelligence)} + + + + {/*Hook for player scripts*/} + + + + + + {!Settings.DisableOverviewProgressBars && ( + + )} + + ); }