mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +01:00
Remove unused augmentationStats interface
All augmentations have all multipliers
This commit is contained in:
parent
3d4d02a573
commit
25be5c2990
@ -63,7 +63,7 @@ function stopAndCleanUpWorkerScript(ws: WorkerScript): void {
|
|||||||
if (ws.delay) clearTimeout(ws.delay);
|
if (ws.delay) clearTimeout(ws.delay);
|
||||||
ws.delayReject?.(new ScriptDeath(ws));
|
ws.delayReject?.(new ScriptDeath(ws));
|
||||||
ws.env.runningFn = "";
|
ws.env.runningFn = "";
|
||||||
|
|
||||||
if (typeof ws.atExit === "function") {
|
if (typeof ws.atExit === "function") {
|
||||||
try {
|
try {
|
||||||
ws.env.stopFlag = false;
|
ws.env.stopFlag = false;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import { AugmentationStats } from "../ScriptEditor/NetscriptDefinitions";
|
|
||||||
|
|
||||||
export interface Multipliers {
|
export interface Multipliers {
|
||||||
hacking_chance: number;
|
hacking_chance: number;
|
||||||
hacking_speed: number;
|
hacking_speed: number;
|
||||||
|
161
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
161
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -75,37 +75,67 @@ interface Player {
|
|||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface Multipliers {
|
export interface Multipliers {
|
||||||
hacking_chance: number;
|
/** Multiplier to hacking skill */
|
||||||
hacking_speed: number;
|
hacking?: number;
|
||||||
hacking_money: number;
|
/** Multiplier to strength skill */
|
||||||
hacking_grow: number;
|
strength?: number;
|
||||||
hacking: number;
|
/** Multiplier to defense skill */
|
||||||
hacking_exp: number;
|
defense?: number;
|
||||||
strength: number;
|
/** Multiplier to dexterity skill */
|
||||||
strength_exp: number;
|
dexterity?: number;
|
||||||
defense: number;
|
/** Multiplier to agility skill */
|
||||||
defense_exp: number;
|
agility?: number;
|
||||||
dexterity: number;
|
/** Multiplier to charisma skill */
|
||||||
dexterity_exp: number;
|
charisma?: number;
|
||||||
agility: number;
|
/** Multiplier to hacking experience gain rate */
|
||||||
agility_exp: number;
|
hacking_exp?: number;
|
||||||
charisma: number;
|
/** Multiplier to strength experience gain rate */
|
||||||
charisma_exp: number;
|
strength_exp?: number;
|
||||||
hacknet_node_money: number;
|
/** Multiplier to defense experience gain rate */
|
||||||
hacknet_node_purchase_cost: number;
|
defense_exp?: number;
|
||||||
hacknet_node_ram_cost: number;
|
/** Multiplier to dexterity experience gain rate */
|
||||||
hacknet_node_core_cost: number;
|
dexterity_exp?: number;
|
||||||
hacknet_node_level_cost: number;
|
/** Multiplier to agility experience gain rate */
|
||||||
company_rep: number;
|
agility_exp?: number;
|
||||||
faction_rep: number;
|
/** Multiplier to charisma experience gain rate */
|
||||||
work_money: number;
|
charisma_exp?: number;
|
||||||
crime_success: number;
|
/** Multiplier to chance of successfully performing a hack */
|
||||||
crime_money: number;
|
hacking_chance?: number;
|
||||||
bladeburner_max_stamina: number;
|
/** Multiplier to hacking speed */
|
||||||
bladeburner_stamina_gain: number;
|
hacking_speed?: number;
|
||||||
bladeburner_analysis: number;
|
/** Multiplier to amount of money the player gains from hacking */
|
||||||
bladeburner_success_chance: number;
|
hacking_money?: number;
|
||||||
|
/** Multiplier to amount of money injected into servers using grow */
|
||||||
|
hacking_grow?: number;
|
||||||
|
/** Multiplier to amount of reputation gained when working */
|
||||||
|
company_rep?: number;
|
||||||
|
/** Multiplier to amount of reputation gained when working */
|
||||||
|
faction_rep?: number;
|
||||||
|
/** Multiplier to amount of money gained from crimes */
|
||||||
|
crime_money?: number;
|
||||||
|
/** Multiplier to crime success rate */
|
||||||
|
crime_success?: number;
|
||||||
|
/** Multiplier to amount of money gained from working */
|
||||||
|
work_money?: number;
|
||||||
|
/** Multiplier to amount of money produced by Hacknet Nodes */
|
||||||
|
hacknet_node_money?: number;
|
||||||
|
/** Multiplier to cost of purchasing a Hacknet Node */
|
||||||
|
hacknet_node_purchase_cost?: number;
|
||||||
|
/** Multiplier to cost of ram for a Hacknet Node */
|
||||||
|
hacknet_node_ram_cost?: number;
|
||||||
|
/** Multiplier to cost of core for a Hacknet Node */
|
||||||
|
hacknet_node_core_cost?: number;
|
||||||
|
/** Multiplier to cost of leveling up a Hacknet Node */
|
||||||
|
hacknet_node_level_cost?: number;
|
||||||
|
/** Multiplier to Bladeburner max stamina */
|
||||||
|
bladeburner_max_stamina?: number;
|
||||||
|
/** Multiplier to Bladeburner stamina gain rate */
|
||||||
|
bladeburner_stamina_gain?: number;
|
||||||
|
/** Multiplier to effectiveness in Bladeburner Field Analysis */
|
||||||
|
bladeburner_analysis?: number;
|
||||||
|
/** Multiplier to success chance in Bladeburner contracts/operations */
|
||||||
|
bladeburner_success_chance?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -198,73 +228,6 @@ export interface CrimeStats {
|
|||||||
intelligence_exp: number;
|
intelligence_exp: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Data representing the internal values of an Augmentation.
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
export interface AugmentationStats {
|
|
||||||
/** Multiplier to hacking skill */
|
|
||||||
hacking?: number;
|
|
||||||
/** Multiplier to strength skill */
|
|
||||||
strength?: number;
|
|
||||||
/** Multiplier to defense skill */
|
|
||||||
defense?: number;
|
|
||||||
/** Multiplier to dexterity skill */
|
|
||||||
dexterity?: number;
|
|
||||||
/** Multiplier to agility skill */
|
|
||||||
agility?: number;
|
|
||||||
/** Multiplier to charisma skill */
|
|
||||||
charisma?: number;
|
|
||||||
/** Multiplier to hacking experience gain rate */
|
|
||||||
hacking_exp?: number;
|
|
||||||
/** Multiplier to strength experience gain rate */
|
|
||||||
strength_exp?: number;
|
|
||||||
/** Multiplier to defense experience gain rate */
|
|
||||||
defense_exp?: number;
|
|
||||||
/** Multiplier to dexterity experience gain rate */
|
|
||||||
dexterity_exp?: number;
|
|
||||||
/** Multiplier to agility experience gain rate */
|
|
||||||
agility_exp?: number;
|
|
||||||
/** Multiplier to charisma experience gain rate */
|
|
||||||
charisma_exp?: number;
|
|
||||||
/** Multiplier to chance of successfully performing a hack */
|
|
||||||
hacking_chance?: number;
|
|
||||||
/** Multiplier to hacking speed */
|
|
||||||
hacking_speed?: number;
|
|
||||||
/** Multiplier to amount of money the player gains from hacking */
|
|
||||||
hacking_money?: number;
|
|
||||||
/** Multiplier to amount of money injected into servers using grow */
|
|
||||||
hacking_grow?: number;
|
|
||||||
/** Multiplier to amount of reputation gained when working */
|
|
||||||
company_rep?: number;
|
|
||||||
/** Multiplier to amount of reputation gained when working */
|
|
||||||
faction_rep?: number;
|
|
||||||
/** Multiplier to amount of money gained from crimes */
|
|
||||||
crime_money?: number;
|
|
||||||
/** Multiplier to crime success rate */
|
|
||||||
crime_success?: number;
|
|
||||||
/** Multiplier to amount of money gained from working */
|
|
||||||
work_money?: number;
|
|
||||||
/** Multiplier to amount of money produced by Hacknet Nodes */
|
|
||||||
hacknet_node_money?: number;
|
|
||||||
/** Multiplier to cost of purchasing a Hacknet Node */
|
|
||||||
hacknet_node_purchase_cost?: number;
|
|
||||||
/** Multiplier to cost of ram for a Hacknet Node */
|
|
||||||
hacknet_node_ram_cost?: number;
|
|
||||||
/** Multiplier to cost of core for a Hacknet Node */
|
|
||||||
hacknet_node_core_cost?: number;
|
|
||||||
/** Multiplier to cost of leveling up a Hacknet Node */
|
|
||||||
hacknet_node_level_cost?: number;
|
|
||||||
/** Multiplier to Bladeburner max stamina */
|
|
||||||
bladeburner_max_stamina?: number;
|
|
||||||
/** Multiplier to Bladeburner stamina gain rate */
|
|
||||||
bladeburner_stamina_gain?: number;
|
|
||||||
/** Multiplier to effectiveness in Bladeburner Field Analysis */
|
|
||||||
bladeburner_analysis?: number;
|
|
||||||
/** Multiplier to success chance in Bladeburner contracts/operations */
|
|
||||||
bladeburner_success_chance?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Options to affect the behavior of {@link NS.hack | hack}, {@link NS.grow | grow}, and {@link NS.weaken | weaken}.
|
* Options to affect the behavior of {@link NS.hack | hack}, {@link NS.grow | grow}, and {@link NS.weaken | weaken}.
|
||||||
* @public
|
* @public
|
||||||
@ -2175,7 +2138,7 @@ export interface Singularity {
|
|||||||
* @param name - Name of Augmentation. CASE-SENSITIVE.
|
* @param name - Name of Augmentation. CASE-SENSITIVE.
|
||||||
* @returns Augmentation stats.
|
* @returns Augmentation stats.
|
||||||
*/
|
*/
|
||||||
getAugmentationStats(name: string): AugmentationStats;
|
getAugmentationStats(name: string): Multipliers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Install your purchased augmentations.
|
* Install your purchased augmentations.
|
||||||
|
Loading…
Reference in New Issue
Block a user