Changed Sleeve API functions to prevent conflicts with identically-named functions

This commit is contained in:
danielyxie
2019-03-17 22:04:12 -07:00
parent 066ccf343a
commit c3bc6a0c28
29 changed files with 199 additions and 151 deletions
+3 -3
View File
@@ -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({
+16 -1
View File
@@ -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,
};
}();