Creates a focuser that manages training stats.
The Netscript object.
Priority this focuser should run at, defaults to 100
.
Current training or course being done.
Manager of factions
The Netscript object.
The name of the focusable.
Check combat stats against player.
Combat requirement to check against.
True if player meets requirement with all stats, false otherwise.
Either train at the Powerhouse Gym, or study hacking at Rothman University.
True if the focus was successful, false otherwise.
Get factions needing a higher combat stat.
All factions which have combat requirement higher than current stats, sorted by requirement.
Get factions needing a higher hacking stat.
All factions which have hacking requirement higher than current stats, sorted by requirement.
Take a course at a university.
The course to take.
University to take course at.
True if was successful taking course.
Train a combat stat at a gym.
The stat to train.
Gym to train at.
True if was successful training.
Check if we need to train to meet faction requirements.
True if there's a faction which requires more combat or hacking experience.
Executes a focus action, returning a predefined sleep time.
_sleepTime
if successful, -1 otherwise.
Gets how often to check for task completion, defaults to this._checkInterval
.
How often to check for task completion.
Returns value from preset field.
Value of this._detailField
if set, "" otherwise
Get time needed for task, defaults to this._sleepTime
.
The time to sleep before running the manager again.
Returns priority 5 if multipliers make working within reach, default otherwise.
Priority for task.
Checks if the player is still working.
True if user is still working, false otherwise.
Checks if the action should run in the background, defaults to if priority is > 50.
True if this can run in the background, False if it needs to be in the foreground.
Generated using TypeDoc
Focusable managing training stats for faction requirements.