NETSCRIPT: Moved formatting functions to their own interface (#1635)

This commit is contained in:
G4mingJon4s
2025-05-14 18:13:35 +02:00
committed by GitHub
parent 69cc3b69b5
commit 2b8c008be1
19 changed files with 219 additions and 138 deletions
+8 -4
View File
@@ -224,6 +224,13 @@ const singularity = {
getCurrentWork: SF4Cost(0.5),
} as const;
const format = {
number: 0,
ram: 0,
percent: 0,
time: 0,
} as const;
// Gang API
const gang = {
createGang: RamCostConstants.GangApiBase / 4,
@@ -490,6 +497,7 @@ export const RamCosts: RamCostTree<NSFull> = {
hacknet,
stock,
singularity,
format,
gang,
go,
bladeburner,
@@ -599,10 +607,6 @@ export const RamCosts: RamCostTree<NSFull> = {
getScriptExpGain: RamCostConstants.GetScript,
getRunningScript: RamCostConstants.GetRunningScript,
ramOverride: 0,
formatNumber: 0,
formatRam: 0,
formatPercent: 0,
tFormat: 0,
prompt: 0,
wget: 0,
getFavorToDonate: RamCostConstants.GetFavorToDonate,