mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
use NetscriptDefinitions as source of truth
This commit is contained in:
parent
e892e16585
commit
2e8cdc23d9
@ -75,7 +75,8 @@ import { INetscriptGang, NetscriptGang } from "./NetscriptFunctions/Gang";
|
||||
import { INetscriptSleeve, NetscriptSleeve } from "./NetscriptFunctions/Sleeve";
|
||||
import { INetscriptExtra, NetscriptExtra } from "./NetscriptFunctions/Extra";
|
||||
import { INetscriptHacknet, NetscriptHacknet } from "./NetscriptFunctions/Hacknet";
|
||||
import { INetscriptBladeburner, NetscriptBladeburner } from "./NetscriptFunctions/Bladeburner";
|
||||
import { Bladeburner as INetscriptBladeburner } from "./ScriptEditor/NetscriptDefinitions";
|
||||
import { NetscriptBladeburner } from "./NetscriptFunctions/Bladeburner";
|
||||
import { INetscriptCodingContract, NetscriptCodingContract } from "./NetscriptFunctions/CodingContract";
|
||||
import { INetscriptCorporation, NetscriptCorporation } from "./NetscriptFunctions/Corporation";
|
||||
import { INetscriptFormulas, NetscriptFormulas } from "./NetscriptFunctions/Formulas";
|
||||
|
@ -4,43 +4,7 @@ import { IPlayer } from "../PersonObjects/IPlayer";
|
||||
import { Bladeburner } from "../Bladeburner/Bladeburner";
|
||||
import { getRamCost } from "../Netscript/RamCostGenerator";
|
||||
import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
|
||||
|
||||
export interface INetscriptBladeburner {
|
||||
getContractNames(): any;
|
||||
getOperationNames(): any;
|
||||
getBlackOpNames(): any;
|
||||
getBlackOpRank(name?: any): any;
|
||||
getGeneralActionNames(): any;
|
||||
getSkillNames(): any;
|
||||
startAction(type?: any, name?: any): any;
|
||||
stopBladeburnerAction(): any;
|
||||
getCurrentAction(): any;
|
||||
getActionTime(type?: any, name?: any): any;
|
||||
getActionEstimatedSuccessChance(type?: any, name?: any): any;
|
||||
getActionRepGain(type?: any, name?: any, level?: any): any;
|
||||
getActionCountRemaining(type?: any, name?: any): any;
|
||||
getActionMaxLevel(type?: any, name?: any): any;
|
||||
getActionCurrentLevel(type?: any, name?: any): any;
|
||||
getActionAutolevel(type?: any, name?: any): any;
|
||||
setActionAutolevel(type?: any, name?: any, autoLevel?: any): any;
|
||||
setActionLevel(type?: any, name?: any, level?: any): any;
|
||||
getRank(): any;
|
||||
getSkillPoints(): any;
|
||||
getSkillLevel(skillName?: any): any;
|
||||
getSkillUpgradeCost(skillName?: any): any;
|
||||
upgradeSkill(skillName: any): any;
|
||||
getTeamSize(type?: any, name?: any): any;
|
||||
setTeamSize(type?: any, name?: any, size?: any): any;
|
||||
getCityEstimatedPopulation(cityName: any): any;
|
||||
getCityCommunities(cityName: any): any;
|
||||
getCityChaos(cityName: any): any;
|
||||
getCity(): any;
|
||||
switchCity(cityName: any): any;
|
||||
getStamina(): any;
|
||||
joinBladeburnerFaction(): any;
|
||||
joinBladeburnerDivision(): any;
|
||||
getBonusTime(): any;
|
||||
}
|
||||
import { Bladeburner as INetscriptBladeburner } from "../ScriptEditor/NetscriptDefinitions";
|
||||
|
||||
export function NetscriptBladeburner(
|
||||
player: IPlayer,
|
||||
|
@ -2408,7 +2408,7 @@ interface HackNet {
|
||||
spendHashes(upgName: HashUpgrades, upgTarget?: Host): boolean;
|
||||
}
|
||||
|
||||
interface BladeBurner {
|
||||
export interface Bladeburner {
|
||||
/**
|
||||
* You have to be employed in the Bladeburner division and be in BitNode-7
|
||||
* or have Source-File 7 in order to use this function.
|
||||
@ -2804,9 +2804,9 @@ interface BladeBurner {
|
||||
*
|
||||
* @ramCost 4 GB
|
||||
* @param {string} cityName Name of city. Case-sensitive
|
||||
* @returns {number} Estimated number of Synthoids communities in the specified city.
|
||||
* @returns {number} Number of Synthoids communities in the specified city.
|
||||
*/
|
||||
getCityEstimatedCommunities(name: City): number;
|
||||
getCityCommunities(name: City): number;
|
||||
|
||||
/**
|
||||
* You have to be employed in the Bladeburner division and be in BitNode-7
|
||||
@ -3377,7 +3377,7 @@ export interface NS extends Singularity {
|
||||
/**
|
||||
* @ramCost 0 GB
|
||||
*/
|
||||
readonly bladeburner: BladeBurner;
|
||||
readonly bladeburner: Bladeburner;
|
||||
/**
|
||||
* @ramCost 0 GB
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user