Update HacknetServerElem.tsx

Run prettier.
Run lint : no error. One warning about typescript versionning.
This commit is contained in:
borisflagell 2022-04-21 18:37:47 +02:00
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)
- 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);
upgradeLevelButton = (
@ -126,7 +126,7 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
props.player.hacknet_node_money_mult,
);
let modded_increase =
const modded_increase =
calculateHashGainRate(
node.level,
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)
- 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);
upgradeCoresButton = (