mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 19:37:07 +02:00
API: Remove RAM cost of hacknet namespace and set RAM cost of each hacknet API (#2502)
* API: Remove RAM cost of hacknet namespace and set RAM cost of each hacknet API * Fix Jest tests * Update based on feedback
This commit is contained in:
@@ -182,10 +182,6 @@ function parseOnlyRamCalculate(
|
||||
return { cost: override, entries: [{ type: "misc", name: "override", cost: override }] };
|
||||
}
|
||||
// Check if this is one of the special keys, and add the appropriate ram cost if so.
|
||||
if (ref === "hacknet" && !resolvedRefs.has("hacknet")) {
|
||||
ram += RamCostConstants.HacknetNodes;
|
||||
detailedCosts.push({ type: "ns", name: "hacknet", cost: RamCostConstants.HacknetNodes });
|
||||
}
|
||||
if (ref === "document" && !resolvedRefs.has("document")) {
|
||||
ram += RamCostConstants.Dom;
|
||||
detailedCosts.push({ type: "dom", name: "document", cost: RamCostConstants.Dom });
|
||||
|
||||
Reference in New Issue
Block a user