mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 02:03:01 +02:00
UI: Fix #3366 Sleeve UI would sometime display the stat in TaskSelector while working out.
fixes #3366 Sleeve.gymStatType will now be constrainded to the following values by Sleeve.workoutAtGym() : "none" , "str", "def", "dex", "agi". (could previously be anything inputted by player through API) Sleeve.updateGainTaskRate() and TaskSelector.tasks's initializer block will now use a switch, expecting one of those value, instead of reevaluating the string. (fixing commit issue)
This commit is contained in:
@@ -270,8 +270,20 @@ function getABC(sleeve: Sleeve): [string, string, string] {
|
||||
return ["Commit Crime", sleeve.crimeType, "------"];
|
||||
case SleeveTaskType.Class:
|
||||
return ["Take University Course", sleeve.className, sleeve.currentTaskLocation];
|
||||
case SleeveTaskType.Gym:
|
||||
return ["Workout at Gym", sleeve.gymStatType, sleeve.currentTaskLocation];
|
||||
case SleeveTaskType.Gym: {
|
||||
switch (sleeve.gymStatType) {
|
||||
case "none":
|
||||
return ["Idle", "------", "------"];
|
||||
case "str":
|
||||
return ["Workout at Gym", "Train Strength", sleeve.currentTaskLocation];
|
||||
case "def":
|
||||
return ["Workout at Gym", "Train Defense", sleeve.currentTaskLocation];
|
||||
case "dex":
|
||||
return ["Workout at Gym", "Train Dexterity", sleeve.currentTaskLocation];
|
||||
case "agi":
|
||||
return ["Workout at Gym", "Train Agility", sleeve.currentTaskLocation];
|
||||
}
|
||||
}
|
||||
case SleeveTaskType.Bladeburner:
|
||||
return ["Perform Bladeburner Actions", sleeve.bbAction, sleeve.bbContract];
|
||||
case SleeveTaskType.Recovery:
|
||||
|
||||
Reference in New Issue
Block a user