biuld 0.54.0

This commit is contained in:
Olivier Gagnon 2021-09-20 00:38:05 -04:00
parent a3e624deba
commit 44d6845883
11 changed files with 6165 additions and 144 deletions

79
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

@ -3,6 +3,50 @@
Changelog Changelog
========= =========
v0.54.0 - 2021-09-20 One big react node (hydroflame & community)
-------------------------------------------
** UI **
* The UI is now completely(ish) in react and I'm starting to implement
Material-UI everywhere. This will help make the game feel more consistent.
* Major help from (@threehams)
* New Terminal
* New Active Scripts page
* New sidebar.
* New Character overview
* New tutorial
* New options page
* New create program page (@Nolshine)
** Netscript **
* Add companyName to getPlayer
** Factions **
* Megacorp factions are no longer removed when installing.
** Corporation **
* All research tooltips are always visible.
* Smart supply is enabled by default if purchased (@Nolshine)
** Misc. **
* Fix "Game saved" animation. (@Nolshine)
* Update commitCrime documentation (@Tryneus)
* Fix logbox scrolling weird (@Nolshine)
* Fix weird scrolling in corporations (@BartKoppelmans)
* Fix typo (@BartKoppelmans & @Nolshine)
* Delete game now has a confirmation modal (@Nolshine)
* Fix issue where skills would not get properly updated when entering new
BN. (@Nolshine)
* Convert create gang to popup (@vmesecher)
* Fixed a bug that prevented travel to Sector-12 and New Tokyo when not using
ASCII art.
* nerf noodle bar
v0.53.0 - 2021-09-09 Way too many things. (hydroflame & community) v0.53.0 - 2021-09-09 Way too many things. (hydroflame & community)
------------------------------------------- -------------------------------------------

@ -64,9 +64,9 @@ documentation_title = '{0} Documentation'.format(project)
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '0.53' version = '0.54'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '0.53.0' release = '0.54.0'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.

@ -36,26 +36,10 @@
ga("send", "pageview"); ga("send", "pageview");
</script> </script>
<link rel="shortcut icon" href="favicon.ico"><link href="dist/vendor.css" rel="stylesheet"><link href="dist/engineStyle.css" rel="stylesheet"></head> <link rel="shortcut icon" href="favicon.ico"><link href="dist/vendor.css" rel="stylesheet"><link href="main.css" rel="stylesheet"></head>
<body> <body>
<div id="entire-game-container" style="visibility: hidden"> <div id="entire-game-container">
<div id="mainmenu-container" style="display: flex; flex-direction: row"> <div id="mainmenu-container" style="display: flex; flex-direction: row"></div>
<!-- Main menu -->
<div id="sidebar" style=""></div>
<div id="generic-react-container"></div>
</div>
<div id="mission-container" class="generic-fullscreen-container"></div>
<!-- Interactive Tutorial Text Screen -->
<div id="interactive-tutorial-wrapper">
<div id="interactive-tutorial-container">
<p id="interactive-tutorial-text"></p>
<button id="interactive-tutorial-exit">Exit Tutorial</button>
<button id="interactive-tutorial-next">Next</button>
<button id="interactive-tutorial-back">Back</button>
</div>
</div>
<!-- Status text --> <!-- Status text -->
<div id="status-text-container"> <div id="status-text-container">
@ -63,33 +47,6 @@
</div> </div>
</div> </div>
<input type="file" id="import-game-file-selector" name="file"/>
<!-- Loader (Loading screen) -->
<div id="loader" class="loaderoverlay">
<div class="loaderspinner"></div>
<div class="loaderlabel">Loading Bitburner...</div>
<div id="killAllMessageWrapper" class="killAllMessage killAllMessageWrapperHidden">
<script>
setTimeout(function () {
var w = document.getElementById("killAllMessageWrapper");
if (w == null) {
return;
}
w.classList.remove("killAllMessageWrapperHidden");
w.classList.add("killAllMessageWrapperShow");
}, 2000);
</script>
<p>
If the game fails to load, consider
<a href="?noScripts">killing all scripts</a>
</p>
</div>
</div>
<div id="unclickable" style="display: none">Click on this to upgrade your Source-File -1!</div> <div id="unclickable" style="display: none">Click on this to upgrade your Source-File -1!</div>
<script type="text/javascript" src="dist/vendor.bundle.js"></script><script type="text/javascript" src="dist/engine.bundle.js"></script><script type="text/javascript" src="dist/engineStyle.bundle.js"></script></body> <script type="text/javascript" src="dist/vendor.bundle.js"></script><script type="text/javascript" src="main.bundle.js"></script></body>
<!-- Misc Scripts -->
<script src="src/ThirdParty/raphael.min.js"></script>
</html> </html>

20
main.bundle.js Normal file

File diff suppressed because one or more lines are too long

1
main.bundle.js.map Normal file

File diff suppressed because one or more lines are too long

6006
main.css Normal file

File diff suppressed because it is too large Load Diff

1
main.css.map Normal file

File diff suppressed because one or more lines are too long

@ -121,7 +121,7 @@ export const CONSTANTS: {
TotalNumBitNodes: number; TotalNumBitNodes: number;
LatestUpdate: string; LatestUpdate: string;
} = { } = {
Version: "0.53.0", Version: "0.54.0",
// Speed (in ms) at which the main loop is updated // Speed (in ms) at which the main loop is updated
_idleSpeed: 200, _idleSpeed: 200,
@ -344,83 +344,48 @@ export const CONSTANTS: {
TotalNumBitNodes: 24, TotalNumBitNodes: 24,
LatestUpdate: ` LatestUpdate: `
v0.53.0 - 2021-09-09 Way too many things. (hydroflame & community) v0.54.0 - 2021-09-20 One big react node (hydroflame & community)
------------------------------------------- -------------------------------------------
** Dev? ** ** UI **
* The entire codebase has been run through a code prettifier, hurray for consistency. (@threehams) * The UI is now completely(ish) in react and I'm starting to implement
* Lots of test. (@threehams) Material-UI everywhere. This will help make the game feel more consistent.
* Massive improvements to build speed. (@threehams) * Major help from (@threehams)
* Dev notes: This won't affect any players but is immensely useful for me. * New Terminal
* New Active Scripts page
* New sidebar.
* New Character overview
* New tutorial
* New options page
* New create program page (@Nolshine)
** Hacknet ** ** Netscript **
* Converted to ts/react * Add companyName to getPlayer
** Resleeving ** ** Factions **
* Converted to ts/react * Megacorp factions are no longer removed when installing.
** Sleeves ** ** Corporation **
* Converted to ts/react. The ui should also have a better feel. * All research tooltips are always visible.
* Fixed a bug that allowed players to recover shock much faster than intended. * Smart supply is enabled by default if purchased (@Nolshine)
** BN10 **
* You have access to Sleeves right away
* In BN10 Sleeves start with 75 shock and 25 sync.
** MathJax **
* Several tooltips have been updated to display the relevant formula in Mathjax, e.g. Favor and reputation
** Corporation **
* Completely rewritten in React. Paving the way for bigger change.
* Smart Supply is now smarter and won't deadlock the warehouse. It is also more configurable.
* Several UI fixes.
** Bladeburner **
* Action count is no longer decided when joining the Bladeburners. Experiences for all players should be more similar.
** Factions **
* No factions have home computer ram requirement. This caused some confusion for new players.
** Gang **
* Made it clear when there's a new equipment coming up.
** Netscript **
* getActionCountRemaining now returns Infinity for bladeburner general actions. (@brubsy)
* getActionEstimatedSuccessChance now returns 100% for Diplomacy and Hyperbolic Regeneration Chamber. (@brubsy)
* disableLog('ALL') now disables all logs individually, meaning you can re-enable the ones you want after. (@Cass)
* getPlayer returns numPeopleKilled.
* Dynamic RAM calculation errors have a better error message.
* Hide some functions from autocomplete.
* Added getAugmentationPrice, getAugmentationRepReq, deprecated getAugmentationCost. (@TempFound)
* Fixed bug where some crime API would return "assassinate" when that's not accepted in other functions.
** Coding Contract **
* Spiralize Matrix is easier to read.
** Misc. ** ** Misc. **
* The world map is now used in sleeve travel and bladeburner travel. * Fix "Game saved" animation. (@Nolshine)
* noselect a bunch of stuff. * Update commitCrime documentation (@Tryneus)
* Ascii maps letters are more contrasting * Fix logbox scrolling weird (@Nolshine)
* Updated documentation for infiltration. * Fix weird scrolling in corporations (@BartKoppelmans)
* Most money costs in the game will turn grey/cyan when you don't have enough money. * Fix typo (@BartKoppelmans & @Nolshine)
* Donation textbox has better look & feel. * Delete game now has a confirmation modal (@Nolshine)
* Tech vendors ram & cores buttons have better look and feels. * Fix issue where skills would not get properly updated when entering new
* cores cost modified to be a formula instead of a semi-random array of numbers. BN. (@Nolshine)
* Tech vendors now give a hint about where to get bigger servers. * Convert create gang to popup (@vmesecher)
* logboxes now displays whitespaces exactly. (@Cass) * Fixed a bug that prevented travel to Sector-12 and New Tokyo when not using
ASCII art.
* nerf noodle bar * nerf noodle bar
`, `,

@ -85,7 +85,7 @@ export class Terminal implements ITerminal {
process(router: IRouter, player: IPlayer, cycles: number): void { process(router: IRouter, player: IPlayer, cycles: number): void {
if (this.action === null) return; if (this.action === null) return;
this.action.timeLeft -= (CONSTANTS._idleSpeed * cycles) / 1000; this.action.timeLeft -= (CONSTANTS._idleSpeed * cycles) / 1000;
if (this.action.timeLeft < 0) this.finishAction(router, player, false); if (this.action.timeLeft < 0.01) this.finishAction(router, player, false);
TerminalEvents.emit(); TerminalEvents.emit();
} }

@ -22,8 +22,8 @@ export function ActiveScriptsRoot(props: IProps): React.ReactElement {
} }
useEffect(() => { useEffect(() => {
// const id = setInterval(rerender, 20); const id = setInterval(rerender, 20);
// return () => clearInterval(id); return () => clearInterval(id);
}, []); }, []);
return ( return (