diff --git a/doc/source/netscript/bladeburnerapi/getCityCommunities.rst b/doc/source/netscript/bladeburnerapi/getCityCommunities.rst new file mode 100644 index 000000000..297c2f9e2 --- /dev/null +++ b/doc/source/netscript/bladeburnerapi/getCityCommunities.rst @@ -0,0 +1,15 @@ +getCityCommunities() Netscript Function +================================================ + +.. js:function:: getCityCommunities(cityName) + + :RAM cost: 4 GB + :param string cityName: Name of city. Case-sensitive + :returns: Confirmed number of Synthoid communities in the specified city, + or -1 if an invalid city was specified. + + Example: + + .. code-block:: javascript + + bladeburner.getCityCommunities("Sector-12"); // returns: 76 \ No newline at end of file diff --git a/doc/source/netscript/bladeburnerapi/getCityEstimatedCommunities.rst b/doc/source/netscript/bladeburnerapi/getCityEstimatedCommunities.rst deleted file mode 100644 index 34cace15f..000000000 --- a/doc/source/netscript/bladeburnerapi/getCityEstimatedCommunities.rst +++ /dev/null @@ -1,15 +0,0 @@ -getCityEstimatedCommunities() Netscript Function -================================================ - -.. js:function:: getCityEstimatedCommunities(cityName) - - :RAM cost: 4 GB - :param string cityName: Name of city. Case-sensitive - :returns: Estimated number of Synthoid communities in the specified city, - or -1 if an invalid city was specified. - - Example: - - .. code-block:: javascript - - bladeburner.getCityEstimatedCommunities("Sector-12"); // returns: 76 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index d227afec4..66626fdca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "bitburner", "version": "0.56.0", "hasInstallScript": true, "license": "SEE LICENSE IN license.txt", diff --git a/src/Crime/CrimeHelpers.ts b/src/Crime/CrimeHelpers.ts index c7d0fa50b..70374c648 100644 --- a/src/Crime/CrimeHelpers.ts +++ b/src/Crime/CrimeHelpers.ts @@ -30,7 +30,8 @@ export function determineCrimeSuccess(p: IPlayer, type: string): boolean { } } -export function findCrime(roughName: string): Crime | null {roughName = roughName.toLowerCase(); +export function findCrime(roughName: string): Crime | null { + roughName = roughName.toLowerCase(); if (roughName.includes("shoplift")) { return Crimes.Shoplift; } else if (roughName.includes("rob") && roughName.includes("store")) { diff --git a/src/NetscriptFunctions/Bladeburner.ts b/src/NetscriptFunctions/Bladeburner.ts index 8ba84afb4..775174ab5 100644 --- a/src/NetscriptFunctions/Bladeburner.ts +++ b/src/NetscriptFunctions/Bladeburner.ts @@ -32,7 +32,7 @@ export interface INetscriptBladeburner { getTeamSize(type?: any, name?: any): any; setTeamSize(type?: any, name?: any, size?: any): any; getCityEstimatedPopulation(cityName: any): any; - getCityEstimatedCommunities(cityName: any): any; + getCityCommunities(cityName: any): any; getCityChaos(cityName: any): any; getCity(): any; switchCity(cityName: any): any; @@ -320,10 +320,10 @@ export function NetscriptBladeburner( if (bladeburner === null) throw new Error("Should not be called without Bladeburner"); return bladeburner.cities[cityName].popEst; }, - getCityEstimatedCommunities: function (cityName: any): any { - helper.updateDynamicRam("getCityEstimatedCommunities", getRamCost("bladeburner", "getCityEstimatedCommunities")); - checkBladeburnerAccess("getCityEstimatedCommunities"); - checkBladeburnerCity("getCityEstimatedCommunities", cityName); + getCityCommunities: function (cityName: any): any { + helper.updateDynamicRam("getCityCommunities", getRamCost("bladeburner", "getCityCommunities")); + checkBladeburnerAccess("getCityCommunities"); + checkBladeburnerCity("getCityCommunities", cityName); const bladeburner = player.bladeburner; if (bladeburner === null) throw new Error("Should not be called without Bladeburner"); return bladeburner.cities[cityName].comms;