Began implementing Singularity functions

This commit is contained in:
danielyxie
2017-08-21 11:59:06 -05:00
parent 99c220514f
commit e2d0477203
3 changed files with 69 additions and 5 deletions
+40 -1
View File
@@ -1,3 +1,10 @@
function initSingularitySFFlags() {
//TODO
}
var hasSingularitySF = false;
var singularitySFLvl = 1;
function NetscriptFunctions(workerScript) {
return {
hacknetnodes : Player.hacknetNodes,
@@ -864,7 +871,39 @@ function NetscriptFunctions(workerScript) {
throw makeRuntimeRejectMsg(workerScript, "getWeakenTime() failed. Invalid IP or hostname passed in: " + ip);
}
return scriptCalculateWeakenTime(server) / 1000; //Returns seconds
}
},
/* Singularity Functions */
universityCourse(universityName, courseName) {
if (Player.isWorking) {
var txt = Player.singularityStopWork();
workerScript.scriptRef.log(txt);
}
},
//gymWorkout(gymName, stat);
//travelToCity(cityname);
//purchaseTor();
//homeComp.upgradeRam();
//homeComp.getUpgradeRamCost();
//workForCompany();
//applyToCompany(companyName, field);
//getCompanyRep(companyName);
//checkFactionInvitations();
//joinFaction(name);
//workForFaction(facName, type);
//getFactionRep(name);
//createProgram();
//getAugmentationCost(name);
//purchaseAugmentation(faction, name);
//installAugmentations();
}
}