mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 17:23:00 +02:00
Changed Sleeve API functions to prevent conflicts with identically-named functions
This commit is contained in:
@@ -128,9 +128,9 @@ let NetscriptFunctions =
|
||||
"getNumTriesRemaining|" +
|
||||
|
||||
// Sleeve API
|
||||
"sleeve|getNumSleeves|shockRecovery|synchronize|commitCrime|" +
|
||||
"takeUniversityCourse|travel|workForCompany|workForFaction|workoutAtGym|" +
|
||||
"getStats|getTask|getInformation";
|
||||
"sleeve|getNumSleeves|setToShockRecovery|setToSynchronize|setToCommitCrime|" +
|
||||
"setToUniversityCourse|travel|setToCompanyWork|setToFactionWork|setToGymWorkout|" +
|
||||
"getSleeveStats|getTask|getInformation";
|
||||
|
||||
var NetscriptHighlightRules = function(options) {
|
||||
var keywordMapper = this.createKeywordMapper({
|
||||
|
||||
@@ -233,7 +233,7 @@ CodeMirror.defineMode("netscript", function(config, parserConfig) {
|
||||
"switchCity": atom,
|
||||
"getStamina": atom,
|
||||
"joinBladeburnerFaction": atom,
|
||||
"getBonusTime": atom,
|
||||
// Repeat of above "getBonusTime": atom,
|
||||
|
||||
// Netscript Coding Contract API
|
||||
"codingcontract": atom,
|
||||
@@ -242,6 +242,21 @@ CodeMirror.defineMode("netscript", function(config, parserConfig) {
|
||||
"getData": atom,
|
||||
"getDescription": atom,
|
||||
"getNumTriesRemaining": atom,
|
||||
|
||||
// Sleeve API
|
||||
"sleeve": atom,
|
||||
"getNumSleeves": atom,
|
||||
"setToShockRecovery": atom,
|
||||
"setToSynchronize": atom,
|
||||
"setToCommitCrime": atom,
|
||||
"setToUniversityCourse": atom,
|
||||
"travel": atom,
|
||||
"setToCompanyWork": atom,
|
||||
"setToFactionWork": atom,
|
||||
"setToGymWorkout": atom,
|
||||
"getSleeveStats": atom,
|
||||
"getTask": atom,
|
||||
"getInformation": atom,
|
||||
};
|
||||
}();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user