UI: Hacknet terminology consistency (#1256)

* UI labels/Augment effects reworded to remove the "Node" parts
* No changes to API-facing labels/savedata/functions
This commit is contained in:
gmcew 2024-05-17 12:44:09 +01:00 committed by GitHub
parent 38d99ff15e
commit 7113ee5425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 17 additions and 19 deletions

@ -141,16 +141,16 @@ function generateStatsDescription(mults: Multipliers, programs?: string[], start
// Hacknet: costs are negative // Hacknet: costs are negative
if (mults.hacknet_node_money !== 1) desc += `\n+${f(mults.hacknet_node_money - 1)} hacknet production`; if (mults.hacknet_node_money !== 1) desc += `\n+${f(mults.hacknet_node_money - 1)} hacknet production`;
if (mults.hacknet_node_purchase_cost !== 1) { if (mults.hacknet_node_purchase_cost !== 1) {
desc += `\n-${f(-(mults.hacknet_node_purchase_cost - 1))} hacknet nodes cost`; desc += `\n-${f(-(mults.hacknet_node_purchase_cost - 1))} hacknet purchase cost`;
} }
if (mults.hacknet_node_level_cost !== 1) { if (mults.hacknet_node_level_cost !== 1) {
desc += `\n-${f(-(mults.hacknet_node_level_cost - 1))} hacknet level upgrade cost`; desc += `\n-${f(-(mults.hacknet_node_level_cost - 1))} hacknet level upgrade cost`;
} }
if (mults.hacknet_node_ram_cost !== 1) { if (mults.hacknet_node_ram_cost !== 1) {
desc += `\n-${f(-(mults.hacknet_node_ram_cost - 1))} hacknet RAM cost`; desc += `\n-${f(-(mults.hacknet_node_ram_cost - 1))} hacknet RAM upgrade cost`;
} }
if (mults.hacknet_node_core_cost !== 1) { if (mults.hacknet_node_core_cost !== 1) {
desc += `\n-${f(-(mults.hacknet_node_core_cost - 1))} hacknet core cost`; desc += `\n-${f(-(mults.hacknet_node_core_cost - 1))} hacknet core upgrade cost`;
} }
// Bladeburner // Bladeburner

@ -86,9 +86,7 @@ function getRandomBonus(): CircadianBonus {
hacknet_node_core_cost: 0.85, hacknet_node_core_cost: 0.85,
hacknet_node_level_cost: 0.85, hacknet_node_level_cost: 0.85,
}, },
description: description: "Increases Hacknet production by 20%.\n" + "Decreases all costs related to Hacknet by 15%.",
"Increases the amount of money produced by Hacknet Nodes by 20%.\n" +
"Decreases all costs related to Hacknet Node by 15%.",
}, },
{ {
bonuses: { bonuses: {

@ -127,7 +127,7 @@ export function AugmentationsRoot(props: IProps): React.ReactElement {
<Typography>- Money</Typography> <Typography>- Money</Typography>
<Typography>- Scripts on every computer but your home computer</Typography> <Typography>- Scripts on every computer but your home computer</Typography>
<Typography>- Purchased servers</Typography> <Typography>- Purchased servers</Typography>
<Typography>- Hacknet Nodes</Typography> <Typography>- Hacknet</Typography>
<Typography>- Faction/Company reputation</Typography> <Typography>- Faction/Company reputation</Typography>
<Typography>- Stocks</Typography> <Typography>- Stocks</Typography>
<br /> <br />

@ -197,28 +197,28 @@ export function PlayerMultipliers(): React.ReactElement {
]; ];
const rightColData: MultiplierListItemData[] = [ const rightColData: MultiplierListItemData[] = [
{ {
mult: "Hacknet Node Production", mult: "Hacknet Production",
current: Player.mults.hacknet_node_money, current: Player.mults.hacknet_node_money,
augmented: Player.mults.hacknet_node_money * mults.hacknet_node_money, augmented: Player.mults.hacknet_node_money * mults.hacknet_node_money,
bnMult: currentNodeMults.HacknetNodeMoney, bnMult: currentNodeMults.HacknetNodeMoney,
}, },
{ {
mult: "Hacknet Node Purchase Cost", mult: "Hacknet Purchase Cost",
current: Player.mults.hacknet_node_purchase_cost, current: Player.mults.hacknet_node_purchase_cost,
augmented: Player.mults.hacknet_node_purchase_cost * mults.hacknet_node_purchase_cost, augmented: Player.mults.hacknet_node_purchase_cost * mults.hacknet_node_purchase_cost,
}, },
{ {
mult: "Hacknet Node RAM Upgrade Cost", mult: "Hacknet RAM Upgrade Cost",
current: Player.mults.hacknet_node_ram_cost, current: Player.mults.hacknet_node_ram_cost,
augmented: Player.mults.hacknet_node_ram_cost * mults.hacknet_node_ram_cost, augmented: Player.mults.hacknet_node_ram_cost * mults.hacknet_node_ram_cost,
}, },
{ {
mult: "Hacknet Node Core Purchase Cost", mult: "Hacknet Core Purchase Cost",
current: Player.mults.hacknet_node_core_cost, current: Player.mults.hacknet_node_core_cost,
augmented: Player.mults.hacknet_node_core_cost * mults.hacknet_node_core_cost, augmented: Player.mults.hacknet_node_core_cost * mults.hacknet_node_core_cost,
}, },
{ {
mult: "Hacknet Node Level Upgrade Cost", mult: "Hacknet Level Upgrade Cost",
current: Player.mults.hacknet_node_level_cost, current: Player.mults.hacknet_node_level_cost,
augmented: Player.mults.hacknet_node_level_cost * mults.hacknet_node_level_cost, augmented: Player.mults.hacknet_node_level_cost * mults.hacknet_node_level_cost,
}, },

@ -158,10 +158,10 @@ function MoneyModal({ open, onClose }: IMoneyModalProps): React.ReactElement {
parts.push([`Hacking:`, <Money key="hacking" money={src.hacking} />]); parts.push([`Hacking:`, <Money key="hacking" money={src.hacking} />]);
} }
if (src.hacknet) { if (src.hacknet) {
parts.push([`Hacknet Nodes:`, <Money key="hacknet" money={src.hacknet} />]); parts.push([`Hacknet:`, <Money key="hacknet" money={src.hacknet} />]);
} }
if (src.hacknet_expenses) { if (src.hacknet_expenses) {
parts.push([`Hacknet Nodes Expenses:`, <Money key="hacknet-expenses" money={src.hacknet_expenses} />]); parts.push([`Hacknet Expenses:`, <Money key="hacknet-expenses" money={src.hacknet_expenses} />]);
} }
if (src.hospitalization) { if (src.hospitalization) {
parts.push([`Hospitalization:`, <Money key="hospital" money={src.hospitalization} />]); parts.push([`Hospitalization:`, <Money key="hospital" money={src.hospitalization} />]);
@ -472,24 +472,24 @@ export function CharacterStats(): React.ReactElement {
<MultiplierTable <MultiplierTable
rows={[ rows={[
{ {
mult: "Hacknet Node Production", mult: "Hacknet Production",
value: Player.mults.hacknet_node_money, value: Player.mults.hacknet_node_money,
effValue: Player.mults.hacknet_node_money * currentNodeMults.HacknetNodeMoney, effValue: Player.mults.hacknet_node_money * currentNodeMults.HacknetNodeMoney,
}, },
{ {
mult: "Hacknet Node Purchase Cost", mult: "Hacknet Purchase Cost",
value: Player.mults.hacknet_node_purchase_cost, value: Player.mults.hacknet_node_purchase_cost,
}, },
{ {
mult: "Hacknet Node RAM Upgrade Cost", mult: "Hacknet RAM Upgrade Cost",
value: Player.mults.hacknet_node_ram_cost, value: Player.mults.hacknet_node_ram_cost,
}, },
{ {
mult: "Hacknet Node Core Purchase Cost", mult: "Hacknet Core Purchase Cost",
value: Player.mults.hacknet_node_core_cost, value: Player.mults.hacknet_node_core_cost,
}, },
{ {
mult: "Hacknet Node Level Upgrade Cost", mult: "Hacknet Level Upgrade Cost",
value: Player.mults.hacknet_node_level_cost, value: Player.mults.hacknet_node_level_cost,
}, },
]} ]}