mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-21 23:22:04 +02:00
API: Reduce the RAM cost of ns.rm() to match ns.scp() (#2761)
* API: Reduce the RAM cost of `ns.rm()` to match `ns.scp` * Fix: Run 'doc'
This commit is contained in:
@@ -72,7 +72,7 @@ True if it successfully deletes the file, and false otherwise.
|
|||||||
|
|
||||||
## Remarks
|
## Remarks
|
||||||
|
|
||||||
RAM cost: 1 GB
|
RAM cost: 0.6 GB
|
||||||
|
|
||||||
Removes the specified file from the current server. This function works for every file type except message (.msg) files.
|
Removes the specified file from the current server. This function works for every file type except message (.msg) files.
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ export const RamCostConstants = {
|
|||||||
GetStock: 2.0,
|
GetStock: 2.0,
|
||||||
BuySellStock: 2.5,
|
BuySellStock: 2.5,
|
||||||
Round: 0.05,
|
Round: 0.05,
|
||||||
ReadWrite: 1.0,
|
|
||||||
ArbScript: 1.0,
|
ArbScript: 1.0,
|
||||||
GetScript: 0.1,
|
GetScript: 0.1,
|
||||||
GetRunningScript: 0.3,
|
GetRunningScript: 0.3,
|
||||||
@@ -631,7 +630,7 @@ export const RamCosts: RamCostTree<NSFull> = {
|
|||||||
nextPortWrite: 0,
|
nextPortWrite: 0,
|
||||||
readPort: 0,
|
readPort: 0,
|
||||||
getPortHandle: 0,
|
getPortHandle: 0,
|
||||||
rm: RamCostConstants.ReadWrite,
|
rm: RamCostConstants.Scp,
|
||||||
scriptRunning: RamCostConstants.ArbScript,
|
scriptRunning: RamCostConstants.ArbScript,
|
||||||
scriptKill: RamCostConstants.ArbScript,
|
scriptKill: RamCostConstants.ArbScript,
|
||||||
getScriptName: 0,
|
getScriptName: 0,
|
||||||
|
|||||||
+1
-1
@@ -8588,7 +8588,7 @@ export interface NS {
|
|||||||
/**
|
/**
|
||||||
* Delete a file.
|
* Delete a file.
|
||||||
* @remarks
|
* @remarks
|
||||||
* RAM cost: 1 GB
|
* RAM cost: 0.6 GB
|
||||||
*
|
*
|
||||||
* Removes the specified file from the current server. This function works for every file
|
* Removes the specified file from the current server. This function works for every file
|
||||||
* type except message (.msg) files.
|
* type except message (.msg) files.
|
||||||
|
|||||||
Reference in New Issue
Block a user