added ram cost for new functions.

This commit is contained in:
Olivier Gagnon 2021-10-27 21:13:57 -04:00
parent 53cb37a9fd
commit d4849cf50f
3 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -11,6 +11,7 @@ export const RamCostConstants: IMap<number> = {
ScriptGrowRamCost: 0.15, ScriptGrowRamCost: 0.15,
ScriptGrowthAnalyzeRamCost: 1, ScriptGrowthAnalyzeRamCost: 1,
ScriptWeakenRamCost: 0.15, ScriptWeakenRamCost: 0.15,
ScriptWeakenAnalyzeRamCost: 1,
ScriptScanRamCost: 0.2, ScriptScanRamCost: 0.2,
ScriptPortProgramRamCost: 0.05, ScriptPortProgramRamCost: 0.05,
ScriptRunRamCost: 1.0, ScriptRunRamCost: 1.0,
@ -80,11 +81,14 @@ export const RamCosts: IMap<any> = {
hack: RamCostConstants.ScriptHackRamCost, hack: RamCostConstants.ScriptHackRamCost,
hackAnalyzeThreads: RamCostConstants.ScriptHackAnalyzeRamCost, hackAnalyzeThreads: RamCostConstants.ScriptHackAnalyzeRamCost,
hackAnalyzePercent: RamCostConstants.ScriptHackAnalyzeRamCost, hackAnalyzePercent: RamCostConstants.ScriptHackAnalyzeRamCost,
hackAnalyzeSecurity: RamCostConstants.ScriptHackAnalyzeRamCost,
hackChance: RamCostConstants.ScriptHackAnalyzeRamCost, hackChance: RamCostConstants.ScriptHackAnalyzeRamCost,
sleep: 0, sleep: 0,
grow: RamCostConstants.ScriptGrowRamCost, grow: RamCostConstants.ScriptGrowRamCost,
growthAnalyze: RamCostConstants.ScriptGrowthAnalyzeRamCost, growthAnalyze: RamCostConstants.ScriptGrowthAnalyzeRamCost,
growthAnalyzeSecurity: RamCostConstants.ScriptGrowthAnalyzeRamCost,
weaken: RamCostConstants.ScriptWeakenRamCost, weaken: RamCostConstants.ScriptWeakenRamCost,
weakenAnalyze: RamCostConstants.ScriptWeakenAnalyzeRamCost,
print: 0, print: 0,
tprint: 0, tprint: 0,
clearLog: 0, clearLog: 0,