This commit is contained in:
Olivier Gagnon 2021-11-18 11:30:45 -05:00
parent c69eb34341
commit f3fa2a7c79
7 changed files with 66 additions and 31 deletions

16
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

@ -3,6 +3,57 @@
Changelog Changelog
========= =========
v1.0.1 - 2021-11-17 New documentation (hydroflame)
--------------------------------------------------
** Documentation **
* The new documentation for the netscript API is available at
https://github.com/danielyxie/bitburner/blob/dev/markdown/bitburner.ns.md
This documentation is used in-game to validate the code, in-editor to autocomplete, and
for users to reference. This is a huge quality of life improvements for me.
** Reputation **
* Fixed favor not affecting faction work reputation gain (Yeah, I know right?)
** Hacknet **
* Servers are now considerd "purchasedByPlayers"
** Script Editor **
* solarized themes now work.
** Corporation **
* Dividends are now much more taxed.
* The 2 upgrades that reduced taxes are now much stronger.
** Misc. **
* Starting / Stopping scripts on hashnet servers immediately updates their hash rate (instead of on the next tick)
* Hacknet has tooltip showing what the result of the upgrade would be.
* Augmentations page displayes current price multiplier as well as explains the mechanic.
* Terminal now is 25x stronger.
* Tail boxes use pre-wrap for it's lines.
* Tail boxes allow you to rerun dead scripts.
* Tail boxes can no longer open the same one twice.
* Terminal now autocompletes through aliases.
* Make alter reality harder.
* Fix bladeburner cancelling actions when manually starting anything with Simulacrum.
* Buying hash upgrade to increase uni class or gym training will apply to current class.
* Internally the game no longer uses the decimal library.
* Fix an issue where 'download *' would generate weird windows files.
* Timestamps can be set to any format in the options.
* Fix typo in documentation share popup.
* Remove bunch of debug log.
* Fix typo in corporation handbook literature.
* Fix typo in documentation
* Fix duplicate SF -1 exploit. (Yeah, an exploit of exploits, now were meta)
* Fix offline hacking earning being attributed to hacknet.
* nerf noodle bar
v1.0.0 - 2021-11-10 Breaking the API :( (blame hydroflame) v1.0.0 - 2021-11-10 Breaking the API :( (blame hydroflame)
----------------------------------------------------------- -----------------------------------------------------------

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -50,7 +50,7 @@ export const CorporationConstants: {
ProductProductionCostRatio: 5, //Ratio of material cost of a product to its production cost ProductProductionCostRatio: 5, //Ratio of material cost of a product to its production cost
DividendMaxPercentage: 0.5, DividendMaxPercentage: 1,
EmployeeSalaryMultiplier: 3, // Employee stats multiplied by this to determine initial salary EmployeeSalaryMultiplier: 3, // Employee stats multiplied by this to determine initial salary
CyclesPerEmployeeRaise: 400, // All employees get a raise every X market cycles CyclesPerEmployeeRaise: 400, // All employees get a raise every X market cycles

@ -39,7 +39,7 @@ export function IssueDividendsModal(props: IProps): React.ReactElement {
if (event.target.value === "") setPercent(0); if (event.target.value === "") setPercent(0);
else { else {
let p = parseFloat(event.target.value); let p = parseFloat(event.target.value);
if (p > 50) p = 50; if (p > 100) p = 100;
if (p < 0) p = 0; if (p < 0) p = 0;
setPercent(p); setPercent(p);
} }
@ -53,16 +53,13 @@ export function IssueDividendsModal(props: IProps): React.ReactElement {
<br /> <br />
<br /> <br />
In order to issue dividends, simply allocate some percentage of your corporation's profits to dividends. This In order to issue dividends, simply allocate some percentage of your corporation's profits to dividends. This
percentage must be an integer between 0 and 50. (A percentage of 0 percentage must be an integer between 0 and 100. (A percentage of 0 means no dividends will be issued)
means no dividends will be issued)
<br /> <br />
<br /> <br />
Two important things to note: Two important things to note:
<br /> <br />
* Issuing dividends will negatively affect your corporation's stock price * Issuing dividends will negatively affect your corporation's stock price
<br /> <br />
* Dividends are taxed. Taxes start at 50%, but can be decreased
<br />
<br /> <br />
Example: Assume your corporation makes $100m / sec in profit and you allocate 40% of that towards dividends. Example: Assume your corporation makes $100m / sec in profit and you allocate 40% of that towards dividends.
That means your corporation will gain $60m / sec in funds and the remaining $40m / sec will be paid as That means your corporation will gain $60m / sec in funds and the remaining $40m / sec will be paid as

@ -295,12 +295,7 @@ function DividendsStats({ profit }: IDividendsStatsProps): React.ReactElement {
["Retained Profits (after dividends):", <MoneyRate money={retainedEarnings} />], ["Retained Profits (after dividends):", <MoneyRate money={retainedEarnings} />],
["Dividend Percentage:", numeralWrapper.format(corp.dividendPercentage / 100, "0%")], ["Dividend Percentage:", numeralWrapper.format(corp.dividendPercentage / 100, "0%")],
["Dividends per share:", <MoneyRate money={dividendsPerShare} />], ["Dividends per share:", <MoneyRate money={dividendsPerShare} />],
["Your earnings as a shareholder (Pre-Tax):", <MoneyRate money={corp.getDividends()} />], ["Your earnings as a shareholder:", <MoneyRate money={corp.getDividends()} />],
["Dividend Tax Rate:", <>{corp.dividendTaxPercentage}%</>],
[
"Your earnings as a shareholder (Post-Tax):",
<MoneyRate money={corp.getDividends() * (1 - corp.dividendTaxPercentage / 100)} />,
],
]} ]}
/> />
); );