mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +01:00
Update HacknetServerElem.tsx
Run prettier. Run lint : no error. One warning about typescript versionning.
This commit is contained in:
parent
ceac0090cf
commit
4fa65322fe
@ -62,7 +62,7 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
|
|||||||
|
|
||||||
const base_increase = calculateHashGainRate(node.level + multiplier, 0, node.maxRam, node.cores, props.player.hacknet_node_money_mult)
|
const base_increase = calculateHashGainRate(node.level + multiplier, 0, node.maxRam, node.cores, props.player.hacknet_node_money_mult)
|
||||||
- calculateHashGainRate(node.level, 0, node.maxRam, node.cores, props.player.hacknet_node_money_mult);
|
- calculateHashGainRate(node.level, 0, node.maxRam, node.cores, props.player.hacknet_node_money_mult);
|
||||||
let modded_increase = base_increase * (node.maxRam - node.ramUsed) / node.maxRam;
|
const modded_increase = base_increase * (node.maxRam - node.ramUsed) / node.maxRam;
|
||||||
|
|
||||||
const upgradeLevelCost = node.calculateLevelUpgradeCost(multiplier, props.player.hacknet_node_level_cost_mult);
|
const upgradeLevelCost = node.calculateLevelUpgradeCost(multiplier, props.player.hacknet_node_level_cost_mult);
|
||||||
upgradeLevelButton = (
|
upgradeLevelButton = (
|
||||||
@ -126,7 +126,7 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
|
|||||||
props.player.hacknet_node_money_mult,
|
props.player.hacknet_node_money_mult,
|
||||||
);
|
);
|
||||||
|
|
||||||
let modded_increase =
|
const modded_increase =
|
||||||
calculateHashGainRate(
|
calculateHashGainRate(
|
||||||
node.level,
|
node.level,
|
||||||
node.ramUsed,
|
node.ramUsed,
|
||||||
@ -182,7 +182,7 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
|
|||||||
|
|
||||||
const base_increase = calculateHashGainRate(node.level, 0, node.maxRam, node.cores + multiplier, props.player.hacknet_node_money_mult)
|
const base_increase = calculateHashGainRate(node.level, 0, node.maxRam, node.cores + multiplier, props.player.hacknet_node_money_mult)
|
||||||
- calculateHashGainRate(node.level, 0, node.maxRam, node.cores, props.player.hacknet_node_money_mult);
|
- calculateHashGainRate(node.level, 0, node.maxRam, node.cores, props.player.hacknet_node_money_mult);
|
||||||
let modded_increase = base_increase * (node.maxRam - node.ramUsed) / node.maxRam;
|
const modded_increase = base_increase * (node.maxRam - node.ramUsed) / node.maxRam;
|
||||||
|
|
||||||
const upgradeCoreCost = node.calculateCoreUpgradeCost(multiplier, props.player.hacknet_node_core_cost_mult);
|
const upgradeCoreCost = node.calculateCoreUpgradeCost(multiplier, props.player.hacknet_node_core_cost_mult);
|
||||||
upgradeCoresButton = (
|
upgradeCoresButton = (
|
||||||
|
Loading…
Reference in New Issue
Block a user