mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
fix sleeve university job (#604)
This commit is contained in:
parent
70eda40bb6
commit
61c8026bd0
@ -214,23 +214,25 @@ export class Sleeve extends Person implements SleevePerson {
|
|||||||
|
|
||||||
// Set experience/money gains based on class
|
// Set experience/money gains based on class
|
||||||
let classType: ClassType | undefined;
|
let classType: ClassType | undefined;
|
||||||
|
// TODO: why lower case??? It's not effecient, not typesafe and in general a bad idea
|
||||||
switch (className.toLowerCase()) {
|
switch (className.toLowerCase()) {
|
||||||
case "study computer science":
|
case "study computer science": // deprecated, leave it here for backwards compatibility
|
||||||
|
case ClassType.computerScience.toLowerCase():
|
||||||
classType = UniversityClassType.computerScience;
|
classType = UniversityClassType.computerScience;
|
||||||
break;
|
break;
|
||||||
case "data structures":
|
case ClassType.dataStructures.toLowerCase():
|
||||||
classType = UniversityClassType.dataStructures;
|
classType = UniversityClassType.dataStructures;
|
||||||
break;
|
break;
|
||||||
case "networks":
|
case ClassType.networks.toLowerCase():
|
||||||
classType = UniversityClassType.networks;
|
classType = UniversityClassType.networks;
|
||||||
break;
|
break;
|
||||||
case "algorithms":
|
case ClassType.algorithms.toLowerCase():
|
||||||
classType = UniversityClassType.algorithms;
|
classType = UniversityClassType.algorithms;
|
||||||
break;
|
break;
|
||||||
case "management":
|
case ClassType.management.toLowerCase():
|
||||||
classType = UniversityClassType.management;
|
classType = UniversityClassType.management;
|
||||||
break;
|
break;
|
||||||
case "leadership":
|
case ClassType.leadership.toLowerCase():
|
||||||
classType = UniversityClassType.leadership;
|
classType = UniversityClassType.leadership;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user