work on making sure all the functions are accounted for

This commit is contained in:
Olivier Gagnon
2021-11-03 18:16:10 -04:00
parent 2578ea51c3
commit c5fb5155f3
124 changed files with 2775 additions and 2204 deletions
+2 -5
View File
@@ -28,6 +28,7 @@ import {
calculateWeakenTime,
} from "../Hacking";
import { Programs } from "../Programs/Programs";
import { Formulas as IFormulas } from "../ScriptEditor/NetscriptDefinitions";
export interface INetscriptFormulas {
skills: {
@@ -63,11 +64,7 @@ export interface INetscriptFormulas {
};
}
export function NetscriptFormulas(
player: IPlayer,
workerScript: WorkerScript,
helper: INetscriptHelper,
): INetscriptFormulas {
export function NetscriptFormulas(player: IPlayer, workerScript: WorkerScript, helper: INetscriptHelper): IFormulas {
const checkFormulasAccess = function (func: string): void {
if (!player.hasProgram(Programs.Formulas.name)) {
throw helper.makeRuntimeErrorMsg(`formulas.${func}`, `Requires Formulas.exe to run.`);