mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
lint
This commit is contained in:
parent
61dded637d
commit
0cb821b50d
@ -1,5 +1,4 @@
|
|||||||
// Class definition for a single Augmentation object
|
// Class definition for a single Augmentation object
|
||||||
import { CONSTANTS } from "../Constants";
|
|
||||||
import { IMap } from "../types";
|
import { IMap } from "../types";
|
||||||
|
|
||||||
import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
|
import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
|
||||||
|
@ -36,20 +36,20 @@ function getRandomBonus() {
|
|||||||
hacking_chance_mult: 1.25,
|
hacking_chance_mult: 1.25,
|
||||||
hacking_speed_mult: 1.10,
|
hacking_speed_mult: 1.10,
|
||||||
hacking_money_mult: 1.25,
|
hacking_money_mult: 1.25,
|
||||||
hacking_grow_mult: 1.1
|
hacking_grow_mult: 1.1,
|
||||||
},
|
},
|
||||||
description: "Increases the player's hacking chance by 25%.<br>" +
|
description: "Increases the player's hacking chance by 25%.<br>" +
|
||||||
"Increases the player's hacking speed by 10%.<br>" +
|
"Increases the player's hacking speed by 10%.<br>" +
|
||||||
"Increases the amount of money the player's gains from hacking by 25%.<br>" +
|
"Increases the amount of money the player's gains from hacking by 25%.<br>" +
|
||||||
"Increases the amount of money the player can inject into servers using grow() by 10%."
|
"Increases the amount of money the player can inject into servers using grow() by 10%.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
bonuses: {
|
bonuses: {
|
||||||
hacking_mult: 1.15,
|
hacking_mult: 1.15,
|
||||||
hacking_exp_mult: 2
|
hacking_exp_mult: 2,
|
||||||
},
|
},
|
||||||
description: "Increases the player's hacking skill by 15%.<br>" +
|
description: "Increases the player's hacking skill by 15%.<br>" +
|
||||||
"Increases the player's hacking experience gain rate by 100%."
|
"Increases the player's hacking experience gain rate by 100%.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
bonuses: {
|
bonuses: {
|
||||||
@ -60,18 +60,18 @@ function getRandomBonus() {
|
|||||||
dexterity_mult: 1.25,
|
dexterity_mult: 1.25,
|
||||||
dexterity_exp_mult: 1.5,
|
dexterity_exp_mult: 1.5,
|
||||||
agility_mult: 1.25,
|
agility_mult: 1.25,
|
||||||
agility_exp_mult: 1.5
|
agility_exp_mult: 1.5,
|
||||||
},
|
},
|
||||||
description: "Increases all of the player's combat stats by 25%.<br>" +
|
description: "Increases all of the player's combat stats by 25%.<br>" +
|
||||||
"Increases all of the player's combat stat experience gain rate by 100%."
|
"Increases all of the player's combat stat experience gain rate by 100%.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
bonuses: {
|
bonuses: {
|
||||||
charisma_mult: 1.5,
|
charisma_mult: 1.5,
|
||||||
charisma_exp_mult: 2
|
charisma_exp_mult: 2,
|
||||||
},
|
},
|
||||||
description: "This augmentation increases the player's charisma by 50%.<br>" +
|
description: "This augmentation increases the player's charisma by 50%.<br>" +
|
||||||
"Increases the player's charisma experience gain rate by 100%."
|
"Increases the player's charisma experience gain rate by 100%.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
bonuses: {
|
bonuses: {
|
||||||
@ -79,29 +79,29 @@ function getRandomBonus() {
|
|||||||
hacknet_node_purchase_cost_mult: 0.85,
|
hacknet_node_purchase_cost_mult: 0.85,
|
||||||
hacknet_node_ram_cost_mult: 0.85,
|
hacknet_node_ram_cost_mult: 0.85,
|
||||||
hacknet_node_core_cost_mult: 0.85,
|
hacknet_node_core_cost_mult: 0.85,
|
||||||
hacknet_node_level_cost_mult: 0.85
|
hacknet_node_level_cost_mult: 0.85,
|
||||||
},
|
},
|
||||||
description: "Increases the amount of money produced by Hacknet Nodes by 20%.<br>" +
|
description: "Increases the amount of money produced by Hacknet Nodes by 20%.<br>" +
|
||||||
"Decreases all costs related to Hacknet Node by 15%."
|
"Decreases all costs related to Hacknet Node by 15%.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
bonuses: {
|
bonuses: {
|
||||||
company_rep_mult: 1.25,
|
company_rep_mult: 1.25,
|
||||||
faction_rep_mult: 1.15,
|
faction_rep_mult: 1.15,
|
||||||
work_money_mult: 1.7
|
work_money_mult: 1.7,
|
||||||
},
|
},
|
||||||
description: "Increases the amount of money the player gains from working by 70%.<br>" +
|
description: "Increases the amount of money the player gains from working by 70%.<br>" +
|
||||||
"Increases the amount of reputation the player gains when working for a company by 25%.<br>" +
|
"Increases the amount of reputation the player gains when working for a company by 25%.<br>" +
|
||||||
"Increases the amount of reputation the player gains for a faction by 15%."
|
"Increases the amount of reputation the player gains for a faction by 15%.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
bonuses: {
|
bonuses: {
|
||||||
crime_success_mult: 2,
|
crime_success_mult: 2,
|
||||||
crime_money_mult: 2
|
crime_money_mult: 2,
|
||||||
},
|
},
|
||||||
description: "Increases the player's crime success rate by 100%.<br>" +
|
description: "Increases the player's crime success rate by 100%.<br>" +
|
||||||
"Increases the amount of money the player gains from crimes by 100%."
|
"Increases the amount of money the player gains from crimes by 100%.",
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/3600000)));
|
const randomNumber = (new WHRNG(Math.floor(Player.lastUpdate/3600000)));
|
||||||
@ -126,7 +126,7 @@ function initAugmentations() {
|
|||||||
const UnstableCircadianModulator = new Augmentation({
|
const UnstableCircadianModulator = new Augmentation({
|
||||||
name:AugmentationNames.UnstableCircadianModulator, moneyCost:5e9, repCost:3.625e5,
|
name:AugmentationNames.UnstableCircadianModulator, moneyCost:5e9, repCost:3.625e5,
|
||||||
info:"An experimental nanobot injection. Its unstable nature leads to unpredictable results based on your circadian rhythm.<br><br>" +
|
info:"An experimental nanobot injection. Its unstable nature leads to unpredictable results based on your circadian rhythm.<br><br>" +
|
||||||
"This augmentation:<br>" + randomBonuses.description + "<br><br>For now ..."
|
"This augmentation:<br>" + randomBonuses.description + "<br><br>For now ...",
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.keys(randomBonuses.bonuses).forEach(key => UnstableCircadianModulator.mults[key] = randomBonuses.bonuses[key]);
|
Object.keys(randomBonuses.bonuses).forEach(key => UnstableCircadianModulator.mults[key] = randomBonuses.bonuses[key]);
|
||||||
|
@ -18,7 +18,6 @@ import {
|
|||||||
} from "../HacknetHelpers";
|
} from "../HacknetHelpers";
|
||||||
|
|
||||||
import { Player } from "../../Player";
|
import { Player } from "../../Player";
|
||||||
import { numeralWrapper } from "../../ui/numeralFormat";
|
|
||||||
|
|
||||||
import { Money } from "../../ui/React/Money";
|
import { Money } from "../../ui/React/Money";
|
||||||
import { Hashes } from "../../ui/React/Hashes";
|
import { Hashes } from "../../ui/React/Hashes";
|
||||||
|
@ -867,7 +867,7 @@ function NetscriptFunctions(workerScript) {
|
|||||||
if (workerScript.env.stopFlag) {return Promise.reject(workerScript);}
|
if (workerScript.env.stopFlag) {return Promise.reject(workerScript);}
|
||||||
const moneyBefore = server.moneyAvailable <= 0 ? 1 : server.moneyAvailable;
|
const moneyBefore = server.moneyAvailable <= 0 ? 1 : server.moneyAvailable;
|
||||||
server.moneyAvailable += (1 * threads); // It can be grown even if it has no money
|
server.moneyAvailable += (1 * threads); // It can be grown even if it has no money
|
||||||
var growthPercentage = processSingleServerGrowth(server, threads, Player);
|
processSingleServerGrowth(server, threads, Player);
|
||||||
const moneyAfter = server.moneyAvailable;
|
const moneyAfter = server.moneyAvailable;
|
||||||
workerScript.scriptRef.recordGrow(server.ip, threads);
|
workerScript.scriptRef.recordGrow(server.ip, threads);
|
||||||
var expGain = calculateHackingExpGain(server, Player) * threads;
|
var expGain = calculateHackingExpGain(server, Player) * threads;
|
||||||
|
Loading…
Reference in New Issue
Block a user