mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 06:03:50 +01:00
Began creating universityCourse singularity function
This commit is contained in:
parent
e2d0477203
commit
33c10ccc64
@ -874,11 +874,47 @@ function NetscriptFunctions(workerScript) {
|
||||
},
|
||||
|
||||
/* Singularity Functions */
|
||||
universityCourse(universityName, courseName) {
|
||||
universityCourse(universityName, className) {
|
||||
if (Player.isWorking) {
|
||||
var txt = Player.singularityStopWork();
|
||||
workerScript.scriptRef.log(txt);
|
||||
}
|
||||
var costMult, expMult;
|
||||
switch(universityName.toLowerCase()) {
|
||||
case Locations.AevumSummitUniversity.toLowerCase():
|
||||
costMult = 4;
|
||||
expMult = 3;
|
||||
break;
|
||||
case Locations.Sector12RothmanUniversity.toLowerCase():
|
||||
costMult = 3;
|
||||
expMult = 2;
|
||||
break;
|
||||
case Locations.VolhavenZBInstituteOfTechnology.toLowerCase():
|
||||
costMult = 5;
|
||||
expMult = 4;
|
||||
break;
|
||||
default:
|
||||
workerScript.scriptRef.log("Invalid university name: " + universityName + ". universityCourse() failed");
|
||||
return false;
|
||||
}
|
||||
|
||||
switch(className.toLowerCase()) {
|
||||
case "Study Computer Science".toLowerCase():
|
||||
break;
|
||||
case "Data Structures".toLowerCase():
|
||||
break;
|
||||
case "Networks".toLowerCase():
|
||||
break;
|
||||
case "Algorithms".toLowerCase():
|
||||
break;
|
||||
case "Management".toLowerCase():
|
||||
break;
|
||||
case "Leadership".toLowerCase():
|
||||
break;
|
||||
default:
|
||||
workerScript.scriptRef.log("Invalid class name: " + className + ". universityCourse() failed");
|
||||
break;
|
||||
}
|
||||
},
|
||||
//gymWorkout(gymName, stat);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user