Merge pull request #1600 from danielyxie/dev

added ram cost for new functions.
This commit is contained in:
hydroflame 2021-10-27 21:14:12 -04:00 committed by GitHub
commit 71542dbe7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,