From 33c10ccc6441265f3b86ee650cf1e92219e1c7f2 Mon Sep 17 00:00:00 2001 From: danielyxie Date: Tue, 22 Aug 2017 13:48:04 -0500 Subject: [PATCH] Began creating universityCourse singularity function --- src/NetscriptFunctions.js | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js index 4b23dbdd8..f9659131d 100644 --- a/src/NetscriptFunctions.js +++ b/src/NetscriptFunctions.js @@ -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);