2021-05-01 09:17:31 +02:00
|
|
|
import { IActionIdentifier } from "./IActionIdentifier";
|
|
|
|
import { City } from "./City";
|
2021-08-16 04:35:43 +02:00
|
|
|
import { Skill } from "./Skill";
|
2021-08-17 01:44:21 +02:00
|
|
|
import { IAction } from "./IAction";
|
2021-08-17 00:43:55 +02:00
|
|
|
import { IPlayer } from "../PersonObjects/IPlayer";
|
|
|
|
import { WorkerScript } from "../Netscript/WorkerScript";
|
2021-05-01 09:17:31 +02:00
|
|
|
|
|
|
|
export interface IBladeburner {
|
|
|
|
numHosp: number;
|
|
|
|
moneyLost: number;
|
|
|
|
rank: number;
|
|
|
|
maxRank: number;
|
2021-08-17 00:43:55 +02:00
|
|
|
|
2021-05-01 09:17:31 +02:00
|
|
|
skillPoints: number;
|
|
|
|
totalSkillPoints: number;
|
2021-08-17 00:43:55 +02:00
|
|
|
|
2021-05-01 09:17:31 +02:00
|
|
|
teamSize: number;
|
|
|
|
teamLost: number;
|
2021-08-16 07:35:05 +02:00
|
|
|
hpLost: number;
|
2021-08-17 00:43:55 +02:00
|
|
|
|
2021-05-01 09:17:31 +02:00
|
|
|
storedCycles: number;
|
2021-08-17 00:43:55 +02:00
|
|
|
|
2021-05-01 09:17:31 +02:00
|
|
|
randomEventCounter: number;
|
2021-08-17 00:43:55 +02:00
|
|
|
|
2021-05-01 09:17:31 +02:00
|
|
|
actionTimeToComplete: number;
|
|
|
|
actionTimeCurrent: number;
|
2021-08-16 04:35:43 +02:00
|
|
|
actionTimeOverflow: number;
|
2021-08-17 00:43:55 +02:00
|
|
|
|
2021-05-01 09:17:31 +02:00
|
|
|
action: IActionIdentifier;
|
2021-08-17 00:43:55 +02:00
|
|
|
|
2021-05-01 09:17:31 +02:00
|
|
|
cities: any;
|
|
|
|
city: string;
|
|
|
|
skills: any;
|
|
|
|
skillMultipliers: any;
|
|
|
|
staminaBonus: number;
|
|
|
|
maxStamina: number;
|
|
|
|
stamina: number;
|
|
|
|
contracts: any;
|
|
|
|
operations: any;
|
|
|
|
blackops: any;
|
|
|
|
logging: any;
|
|
|
|
automateEnabled: boolean;
|
2021-08-16 06:11:52 +02:00
|
|
|
automateActionHigh: IActionIdentifier;
|
2021-05-01 09:17:31 +02:00
|
|
|
automateThreshHigh: number;
|
2021-08-16 06:11:52 +02:00
|
|
|
automateActionLow: IActionIdentifier;
|
2021-05-01 09:17:31 +02:00
|
|
|
automateThreshLow: number;
|
|
|
|
consoleHistory: string[];
|
|
|
|
consoleLogs: string[];
|
|
|
|
|
|
|
|
getCurrentCity(): City;
|
|
|
|
calculateStaminaPenalty(): number;
|
2021-08-17 00:43:55 +02:00
|
|
|
startAction(player: IPlayer, action: IActionIdentifier): void;
|
2021-08-16 04:35:43 +02:00
|
|
|
upgradeSkill(skill: Skill): void;
|
2021-08-17 00:43:55 +02:00
|
|
|
executeConsoleCommands(player: IPlayer, command: string): void;
|
2021-08-16 06:11:52 +02:00
|
|
|
postToConsole(input: string, saveToLogs?: boolean): void;
|
|
|
|
log(input: string): void;
|
|
|
|
resetAction(): void;
|
|
|
|
clearConsole(): void;
|
2021-08-17 00:43:55 +02:00
|
|
|
|
|
|
|
prestige(): void;
|
|
|
|
storeCycles(numCycles?: number): void;
|
2021-08-19 07:45:26 +02:00
|
|
|
getTypeAndNameFromActionId(actionId: IActionIdentifier): {type: string; name: string};
|
2021-08-17 00:43:55 +02:00
|
|
|
getContractNamesNetscriptFn(): string[];
|
|
|
|
getOperationNamesNetscriptFn(): string[];
|
|
|
|
getBlackOpNamesNetscriptFn(): string[];
|
|
|
|
getGeneralActionNamesNetscriptFn(): string[];
|
|
|
|
getSkillNamesNetscriptFn(): string[];
|
|
|
|
startActionNetscriptFn(player: IPlayer, type: string, name: string, workerScript: WorkerScript): boolean;
|
|
|
|
getActionTimeNetscriptFn(player: IPlayer, type: string, name: string, workerScript: WorkerScript): number;
|
|
|
|
getActionEstimatedSuccessChanceNetscriptFn(player: IPlayer, type: string, name: string, workerScript: WorkerScript): number;
|
|
|
|
getActionCountRemainingNetscriptFn(type: string, name: string, workerScript: WorkerScript): number;
|
|
|
|
getSkillLevelNetscriptFn(skillName: string, workerScript: WorkerScript): number;
|
|
|
|
getSkillUpgradeCostNetscriptFn(skillName: string, workerScript: WorkerScript): number;
|
|
|
|
upgradeSkillNetscriptFn(skillName: string, workerScript: WorkerScript): boolean;
|
|
|
|
getTeamSizeNetscriptFn(type: string, name: string, workerScript: WorkerScript): number;
|
|
|
|
setTeamSizeNetscriptFn(type: string, name: string, size: number, workerScript: WorkerScript): number;
|
|
|
|
joinBladeburnerFactionNetscriptFn(workerScript: WorkerScript): boolean;
|
2021-08-17 01:44:21 +02:00
|
|
|
getActionIdFromTypeAndName(type: string, name: string): IActionIdentifier | null;
|
|
|
|
executeStartConsoleCommand(player: IPlayer, args: string[]): void;
|
|
|
|
executeSkillConsoleCommand(args: string[]): void;
|
|
|
|
executeLogConsoleCommand(args: string[]): void;
|
|
|
|
executeHelpConsoleCommand(args: string[]): void;
|
|
|
|
executeAutomateConsoleCommand(args: string[]): void;
|
|
|
|
parseCommandArguments(command: string): string[];
|
|
|
|
executeConsoleCommand(player: IPlayer, command: string): void;
|
|
|
|
triggerMigration(sourceCityName: string): void;
|
|
|
|
triggerPotentialMigration(sourceCityName: string, chance: number): void;
|
|
|
|
randomEvent(): void;
|
|
|
|
gainActionStats(player: IPlayer, action: IAction, success: boolean): void;
|
|
|
|
getDiplomacyEffectiveness(player: IPlayer): number;
|
|
|
|
getRecruitmentSuccessChance(player: IPlayer): number;
|
|
|
|
getRecruitmentTime(player: IPlayer): number;
|
|
|
|
resetSkillMultipliers(): void;
|
|
|
|
updateSkillMultipliers(): void;
|
|
|
|
completeOperation(success: boolean): void;
|
|
|
|
getActionObject(actionId: IActionIdentifier): IAction | null;
|
|
|
|
completeContract(success: boolean): void;
|
|
|
|
completeAction(player: IPlayer): void;
|
|
|
|
changeRank(player: IPlayer, change: number): void;
|
|
|
|
processAction(player: IPlayer, seconds: number): void;
|
|
|
|
calculateStaminaGainPerSecond(player: IPlayer): number;
|
|
|
|
calculateMaxStamina(player: IPlayer): void;
|
|
|
|
create(): void;
|
|
|
|
process(player: IPlayer): void;
|
|
|
|
}
|