mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
merge base
This commit is contained in:
+283
-260
@@ -15,6 +15,7 @@ export const RamCostConstants: IMap<number> = {
|
||||
ScriptWeakenRamCost: 0.15,
|
||||
ScriptWeakenAnalyzeRamCost: 1,
|
||||
ScriptScanRamCost: 0.2,
|
||||
ScriptRecentScriptsRamCost: 0.2,
|
||||
ScriptPortProgramRamCost: 0.05,
|
||||
ScriptRunRamCost: 1.0,
|
||||
ScriptExecRamCost: 1.3,
|
||||
@@ -86,148 +87,52 @@ function SF4Cost(cost: number): (player: IPlayer) => number {
|
||||
};
|
||||
}
|
||||
|
||||
export const RamCosts: IMap<any> = {
|
||||
hacknet: {
|
||||
numNodes: 0,
|
||||
purchaseNode: 0,
|
||||
getPurchaseNodeCost: 0,
|
||||
getNodeStats: 0,
|
||||
upgradeLevel: 0,
|
||||
upgradeRam: 0,
|
||||
upgradeCore: 0,
|
||||
upgradeCache: 0,
|
||||
getLevelUpgradeCost: 0,
|
||||
getRamUpgradeCost: 0,
|
||||
getCoreUpgradeCost: 0,
|
||||
getCacheUpgradeCost: 0,
|
||||
numHashes: 0,
|
||||
hashCost: 0,
|
||||
spendHashes: 0,
|
||||
},
|
||||
sprintf: 0,
|
||||
vsprintf: 0,
|
||||
scan: RamCostConstants.ScriptScanRamCost,
|
||||
hack: RamCostConstants.ScriptHackRamCost,
|
||||
hackAnalyzeThreads: RamCostConstants.ScriptHackAnalyzeRamCost,
|
||||
hackAnalyze: RamCostConstants.ScriptHackAnalyzeRamCost,
|
||||
hackAnalyzeSecurity: RamCostConstants.ScriptHackAnalyzeRamCost,
|
||||
hackAnalyzeChance: RamCostConstants.ScriptHackAnalyzeRamCost,
|
||||
sleep: 0,
|
||||
asleep: 0,
|
||||
share: 2.4,
|
||||
getSharePower: 0.2,
|
||||
grow: RamCostConstants.ScriptGrowRamCost,
|
||||
growthAnalyze: RamCostConstants.ScriptGrowthAnalyzeRamCost,
|
||||
growthAnalyzeSecurity: RamCostConstants.ScriptGrowthAnalyzeRamCost,
|
||||
weaken: RamCostConstants.ScriptWeakenRamCost,
|
||||
weakenAnalyze: RamCostConstants.ScriptWeakenAnalyzeRamCost,
|
||||
print: 0,
|
||||
printf: 0,
|
||||
tprint: 0,
|
||||
clearLog: 0,
|
||||
disableLog: 0,
|
||||
enableLog: 0,
|
||||
isLogEnabled: 0,
|
||||
getScriptLogs: 0,
|
||||
nuke: RamCostConstants.ScriptPortProgramRamCost,
|
||||
brutessh: RamCostConstants.ScriptPortProgramRamCost,
|
||||
ftpcrack: RamCostConstants.ScriptPortProgramRamCost,
|
||||
relaysmtp: RamCostConstants.ScriptPortProgramRamCost,
|
||||
httpworm: RamCostConstants.ScriptPortProgramRamCost,
|
||||
sqlinject: RamCostConstants.ScriptPortProgramRamCost,
|
||||
run: RamCostConstants.ScriptRunRamCost,
|
||||
exec: RamCostConstants.ScriptExecRamCost,
|
||||
spawn: RamCostConstants.ScriptSpawnRamCost,
|
||||
kill: RamCostConstants.ScriptKillRamCost,
|
||||
killall: RamCostConstants.ScriptKillRamCost,
|
||||
exit: 0,
|
||||
atExit: 0,
|
||||
scp: RamCostConstants.ScriptScpRamCost,
|
||||
ls: RamCostConstants.ScriptScanRamCost,
|
||||
ps: RamCostConstants.ScriptScanRamCost,
|
||||
hasRootAccess: RamCostConstants.ScriptHasRootAccessRamCost,
|
||||
getIp: RamCostConstants.ScriptGetHostnameRamCost,
|
||||
getHostname: RamCostConstants.ScriptGetHostnameRamCost,
|
||||
getHackingLevel: RamCostConstants.ScriptGetHackingLevelRamCost,
|
||||
getHackingMultipliers: RamCostConstants.ScriptGetMultipliersRamCost,
|
||||
getHacknetMultipliers: RamCostConstants.ScriptGetMultipliersRamCost,
|
||||
getBitNodeMultipliers: RamCostConstants.ScriptGetMultipliersRamCost,
|
||||
getServer: RamCostConstants.ScriptGetMultipliersRamCost / 2,
|
||||
getServerMoneyAvailable: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerSecurityLevel: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerBaseSecurityLevel: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerMinSecurityLevel: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerRequiredHackingLevel: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerMaxMoney: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerGrowth: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerNumPortsRequired: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerRam: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerMaxRam: RamCostConstants.ScriptGetServerMaxRam,
|
||||
getServerUsedRam: RamCostConstants.ScriptGetServerUsedRam,
|
||||
serverExists: RamCostConstants.ScriptGetServerRamCost,
|
||||
fileExists: RamCostConstants.ScriptFileExistsRamCost,
|
||||
isRunning: RamCostConstants.ScriptIsRunningRamCost,
|
||||
stock: {
|
||||
getSymbols: RamCostConstants.ScriptGetStockRamCost,
|
||||
getPrice: RamCostConstants.ScriptGetStockRamCost,
|
||||
getAskPrice: RamCostConstants.ScriptGetStockRamCost,
|
||||
getBidPrice: RamCostConstants.ScriptGetStockRamCost,
|
||||
getPosition: RamCostConstants.ScriptGetStockRamCost,
|
||||
getMaxShares: RamCostConstants.ScriptGetStockRamCost,
|
||||
getPurchaseCost: RamCostConstants.ScriptGetStockRamCost,
|
||||
getSaleGain: RamCostConstants.ScriptGetStockRamCost,
|
||||
buy: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
sell: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
short: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
sellShort: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
placeOrder: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
cancelOrder: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
getOrders: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
getVolatility: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
getForecast: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
purchase4SMarketData: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
purchase4SMarketDataTixApi: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
purchaseWseAccount: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
purchaseTixApi: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
},
|
||||
getPurchasedServerLimit: RamCostConstants.ScriptGetPurchasedServerLimit,
|
||||
getPurchasedServerMaxRam: RamCostConstants.ScriptGetPurchasedServerMaxRam,
|
||||
getPurchasedServerCost: RamCostConstants.ScriptGetPurchaseServerRamCost,
|
||||
purchaseServer: RamCostConstants.ScriptPurchaseServerRamCost,
|
||||
deleteServer: RamCostConstants.ScriptPurchaseServerRamCost,
|
||||
getPurchasedServers: RamCostConstants.ScriptPurchaseServerRamCost,
|
||||
write: 0,
|
||||
tryWritePort: 0,
|
||||
read: 0,
|
||||
peek: 0,
|
||||
clear: 0,
|
||||
writePort: 0,
|
||||
readPort: 0,
|
||||
getPortHandle: 0,
|
||||
rm: RamCostConstants.ScriptReadWriteRamCost,
|
||||
scriptRunning: RamCostConstants.ScriptArbScriptRamCost,
|
||||
scriptKill: RamCostConstants.ScriptArbScriptRamCost,
|
||||
getScriptName: 0,
|
||||
getScriptRam: RamCostConstants.ScriptGetScriptRamCost,
|
||||
getHackTime: RamCostConstants.ScriptGetHackTimeRamCost,
|
||||
getGrowTime: RamCostConstants.ScriptGetHackTimeRamCost,
|
||||
getWeakenTime: RamCostConstants.ScriptGetHackTimeRamCost,
|
||||
getScriptIncome: RamCostConstants.ScriptGetScriptRamCost,
|
||||
getScriptExpGain: RamCostConstants.ScriptGetScriptRamCost,
|
||||
getRunningScript: RamCostConstants.ScriptGetRunningScriptRamCost,
|
||||
nFormat: 0,
|
||||
tFormat: 0,
|
||||
getTimeSinceLastAug: RamCostConstants.ScriptGetHackTimeRamCost,
|
||||
prompt: 0,
|
||||
wget: 0,
|
||||
getFavorToDonate: RamCostConstants.ScriptGetFavorToDonate,
|
||||
getPlayer: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
||||
mv: 0,
|
||||
getOwnedSourceFiles: RamCostConstants.ScriptGetOwnedSourceFiles,
|
||||
tail: 0,
|
||||
toast: 0,
|
||||
// Hacknet API
|
||||
const hacknet: IMap<any> = {
|
||||
numNodes: 0,
|
||||
purchaseNode: 0,
|
||||
getPurchaseNodeCost: 0,
|
||||
getNodeStats: 0,
|
||||
upgradeLevel: 0,
|
||||
upgradeRam: 0,
|
||||
upgradeCore: 0,
|
||||
upgradeCache: 0,
|
||||
getLevelUpgradeCost: 0,
|
||||
getRamUpgradeCost: 0,
|
||||
getCoreUpgradeCost: 0,
|
||||
getCacheUpgradeCost: 0,
|
||||
numHashes: 0,
|
||||
hashCost: 0,
|
||||
spendHashes: 0,
|
||||
};
|
||||
|
||||
// Singularity Functions
|
||||
// Stock API
|
||||
const stock: IMap<any> = {
|
||||
getSymbols: RamCostConstants.ScriptGetStockRamCost,
|
||||
getPrice: RamCostConstants.ScriptGetStockRamCost,
|
||||
getAskPrice: RamCostConstants.ScriptGetStockRamCost,
|
||||
getBidPrice: RamCostConstants.ScriptGetStockRamCost,
|
||||
getPosition: RamCostConstants.ScriptGetStockRamCost,
|
||||
getMaxShares: RamCostConstants.ScriptGetStockRamCost,
|
||||
getPurchaseCost: RamCostConstants.ScriptGetStockRamCost,
|
||||
getSaleGain: RamCostConstants.ScriptGetStockRamCost,
|
||||
buy: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
sell: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
short: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
sellShort: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
placeOrder: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
cancelOrder: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
getOrders: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
getVolatility: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
getForecast: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
purchase4SMarketData: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
purchase4SMarketDataTixApi: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
purchaseWseAccount: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
purchaseTixApi: RamCostConstants.ScriptBuySellStockRamCost,
|
||||
};
|
||||
|
||||
// Singularity API
|
||||
const singularity: IMap<any> = {
|
||||
universityCourse: SF4Cost(RamCostConstants.ScriptSingularityFn1RamCost),
|
||||
gymWorkout: SF4Cost(RamCostConstants.ScriptSingularityFn1RamCost),
|
||||
travelToCity: SF4Cost(RamCostConstants.ScriptSingularityFn1RamCost),
|
||||
@@ -277,134 +182,252 @@ export const RamCosts: IMap<any> = {
|
||||
installAugmentations: SF4Cost(RamCostConstants.ScriptSingularityFn3RamCost),
|
||||
isFocused: SF4Cost(0.1),
|
||||
setFocus: SF4Cost(0.1),
|
||||
};
|
||||
|
||||
// Gang API
|
||||
gang: {
|
||||
createGang: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
inGang: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
getMemberNames: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
getGangInformation: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getOtherGangInformation: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getMemberInformation: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
canRecruitMember: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
recruitMember: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getTaskNames: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
getTaskStats: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
setMemberTask: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getEquipmentNames: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
getEquipmentCost: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getEquipmentType: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getEquipmentStats: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
purchaseEquipment: RamCostConstants.ScriptGangApiBaseRamCost,
|
||||
ascendMember: RamCostConstants.ScriptGangApiBaseRamCost,
|
||||
getAscensionResult: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
setTerritoryWarfare: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getChanceToWinClash: RamCostConstants.ScriptGangApiBaseRamCost,
|
||||
getBonusTime: 0,
|
||||
},
|
||||
// Gang API
|
||||
const gang: IMap<any> = {
|
||||
createGang: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
inGang: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
getMemberNames: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
getGangInformation: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getOtherGangInformation: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getMemberInformation: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
canRecruitMember: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
recruitMember: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getTaskNames: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
getTaskStats: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
setMemberTask: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getEquipmentNames: RamCostConstants.ScriptGangApiBaseRamCost / 4,
|
||||
getEquipmentCost: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getEquipmentType: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getEquipmentStats: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
purchaseEquipment: RamCostConstants.ScriptGangApiBaseRamCost,
|
||||
ascendMember: RamCostConstants.ScriptGangApiBaseRamCost,
|
||||
getAscensionResult: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
setTerritoryWarfare: RamCostConstants.ScriptGangApiBaseRamCost / 2,
|
||||
getChanceToWinClash: RamCostConstants.ScriptGangApiBaseRamCost,
|
||||
getBonusTime: 0,
|
||||
};
|
||||
|
||||
// Bladeburner API
|
||||
bladeburner: {
|
||||
getContractNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
getOperationNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
getBlackOpNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
getBlackOpRank: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 2,
|
||||
getGeneralActionNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
getSkillNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
startAction: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
stopBladeburnerAction: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 2,
|
||||
getCurrentAction: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 4,
|
||||
getActionTime: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionEstimatedSuccessChance: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionRepGain: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionCountRemaining: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionMaxLevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionCurrentLevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionAutolevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
setActionAutolevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
setActionLevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getRank: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getSkillPoints: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getSkillLevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getSkillUpgradeCost: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
upgradeSkill: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getTeamSize: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
setTeamSize: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getCityEstimatedPopulation: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getCityCommunities: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getCityChaos: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getCity: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
switchCity: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getStamina: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
joinBladeburnerFaction: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
joinBladeburnerDivision: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getBonusTime: 0,
|
||||
},
|
||||
// Bladeburner API
|
||||
const bladeburner: IMap<any> = {
|
||||
getContractNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
getOperationNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
getBlackOpNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
getBlackOpRank: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 2,
|
||||
getGeneralActionNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
getSkillNames: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 10,
|
||||
startAction: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
stopBladeburnerAction: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 2,
|
||||
getCurrentAction: RamCostConstants.ScriptBladeburnerApiBaseRamCost / 4,
|
||||
getActionTime: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionEstimatedSuccessChance: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionRepGain: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionCountRemaining: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionMaxLevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionCurrentLevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getActionAutolevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
setActionAutolevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
setActionLevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getRank: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getSkillPoints: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getSkillLevel: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getSkillUpgradeCost: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
upgradeSkill: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getTeamSize: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
setTeamSize: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getCityEstimatedPopulation: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getCityCommunities: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getCityChaos: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getCity: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
switchCity: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getStamina: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
joinBladeburnerFaction: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
joinBladeburnerDivision: RamCostConstants.ScriptBladeburnerApiBaseRamCost,
|
||||
getBonusTime: 0,
|
||||
};
|
||||
|
||||
// Coding Contract API
|
||||
codingcontract: {
|
||||
attempt: RamCostConstants.ScriptCodingContractBaseRamCost,
|
||||
getContractType: RamCostConstants.ScriptCodingContractBaseRamCost / 2,
|
||||
getData: RamCostConstants.ScriptCodingContractBaseRamCost / 2,
|
||||
getDescription: RamCostConstants.ScriptCodingContractBaseRamCost / 2,
|
||||
getNumTriesRemaining: RamCostConstants.ScriptCodingContractBaseRamCost / 5,
|
||||
},
|
||||
const infiltration: IMap<any> = {
|
||||
calculateDifficulty: RamCostConstants.ScriptInfiltrationCalculateDifficulty,
|
||||
calculateRewards: RamCostConstants.ScriptInfiltrationCalculateRewards,
|
||||
calculateGetLocations: RamCostConstants.ScriptInfiltrationGetLocations,
|
||||
calculateGetInfiltrations: RamCostConstants.ScriptInfiltrationGetInfiltrations,
|
||||
};
|
||||
|
||||
// Duplicate Sleeve API
|
||||
sleeve: {
|
||||
getNumSleeves: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToShockRecovery: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToSynchronize: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToCommitCrime: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToUniversityCourse: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
travel: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToCompanyWork: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToFactionWork: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToGymWorkout: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getSleeveStats: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getTask: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getInformation: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getSleeveAugmentations: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getSleevePurchasableAugs: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
purchaseSleeveAug: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
},
|
||||
// Coding Contract API
|
||||
const codingcontract: IMap<any> = {
|
||||
attempt: RamCostConstants.ScriptCodingContractBaseRamCost,
|
||||
getContractType: RamCostConstants.ScriptCodingContractBaseRamCost / 2,
|
||||
getData: RamCostConstants.ScriptCodingContractBaseRamCost / 2,
|
||||
getDescription: RamCostConstants.ScriptCodingContractBaseRamCost / 2,
|
||||
getNumTriesRemaining: RamCostConstants.ScriptCodingContractBaseRamCost / 5,
|
||||
};
|
||||
|
||||
stanek: {
|
||||
giftWidth: RamCostConstants.ScriptStanekWidth,
|
||||
giftHeight: RamCostConstants.ScriptStanekHeight,
|
||||
chargeFragment: RamCostConstants.ScriptStanekCharge,
|
||||
fragmentDefinitions: RamCostConstants.ScriptStanekFragmentDefinitions,
|
||||
activeFragments: RamCostConstants.ScriptStanekPlacedFragments,
|
||||
clearGift: RamCostConstants.ScriptStanekClear,
|
||||
canPlaceFragment: RamCostConstants.ScriptStanekCanPlace,
|
||||
placeFragment: RamCostConstants.ScriptStanekPlace,
|
||||
getFragment: RamCostConstants.ScriptStanekFragmentAt,
|
||||
removeFragment: RamCostConstants.ScriptStanekDeleteAt,
|
||||
},
|
||||
// Duplicate Sleeve API
|
||||
const sleeve: IMap<any> = {
|
||||
getNumSleeves: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToShockRecovery: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToSynchronize: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToCommitCrime: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToUniversityCourse: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
travel: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToCompanyWork: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToFactionWork: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
setToGymWorkout: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getSleeveStats: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getTask: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getInformation: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getSleeveAugmentations: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
getSleevePurchasableAugs: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
purchaseSleeveAug: RamCostConstants.ScriptSleeveBaseRamCost,
|
||||
};
|
||||
|
||||
infiltration: {
|
||||
calculateDifficulty: RamCostConstants.ScriptInfiltrationCalculateDifficulty,
|
||||
calculateRewards: RamCostConstants.ScriptInfiltrationCalculateRewards,
|
||||
calculateGetLocations: RamCostConstants.ScriptInfiltrationGetLocations,
|
||||
calculateGetInfiltrations: RamCostConstants.ScriptInfiltrationGetInfiltrations,
|
||||
},
|
||||
// Stanek API
|
||||
const stanek: IMap<any> = {
|
||||
giftWidth: RamCostConstants.ScriptStanekWidth,
|
||||
giftHeight: RamCostConstants.ScriptStanekHeight,
|
||||
chargeFragment: RamCostConstants.ScriptStanekCharge,
|
||||
fragmentDefinitions: RamCostConstants.ScriptStanekFragmentDefinitions,
|
||||
activeFragments: RamCostConstants.ScriptStanekPlacedFragments,
|
||||
clearGift: RamCostConstants.ScriptStanekClear,
|
||||
canPlaceFragment: RamCostConstants.ScriptStanekCanPlace,
|
||||
placeFragment: RamCostConstants.ScriptStanekPlace,
|
||||
getFragment: RamCostConstants.ScriptStanekFragmentAt,
|
||||
removeFragment: RamCostConstants.ScriptStanekDeleteAt,
|
||||
};
|
||||
|
||||
ui: {
|
||||
getTheme: 0,
|
||||
setTheme: 0,
|
||||
resetTheme: 0,
|
||||
getStyles: 0,
|
||||
setStyles: 0,
|
||||
resetStyles: 0,
|
||||
getGameInfo: 0,
|
||||
},
|
||||
// UI API
|
||||
const ui: IMap<any> = {
|
||||
getTheme: 0,
|
||||
setTheme: 0,
|
||||
resetTheme: 0,
|
||||
getStyles: 0,
|
||||
setStyles: 0,
|
||||
resetStyles: 0,
|
||||
getGameInfo: 0,
|
||||
};
|
||||
|
||||
grafting: {
|
||||
getAugmentationGraftPrice: 3.75,
|
||||
getAugmentationGraftTime: 3.75,
|
||||
graftAugmentation: 7.5,
|
||||
},
|
||||
// Grafting API
|
||||
const grafting: IMap<any> = {
|
||||
getAugmentationGraftPrice: 3.75,
|
||||
getAugmentationGraftTime: 3.75,
|
||||
graftAugmentation: 7.5,
|
||||
};
|
||||
|
||||
export const RamCosts: IMap<any> = {
|
||||
hacknet,
|
||||
stock,
|
||||
singularity,
|
||||
...singularity, // singularity is in namespace & toplevel
|
||||
gang,
|
||||
bladeburner,
|
||||
infiltration,
|
||||
codingcontract,
|
||||
sleeve,
|
||||
stanek,
|
||||
ui,
|
||||
grafting,
|
||||
|
||||
sprintf: 0,
|
||||
vsprintf: 0,
|
||||
scan: RamCostConstants.ScriptScanRamCost,
|
||||
hack: RamCostConstants.ScriptHackRamCost,
|
||||
hackAnalyzeThreads: RamCostConstants.ScriptHackAnalyzeRamCost,
|
||||
hackAnalyze: RamCostConstants.ScriptHackAnalyzeRamCost,
|
||||
hackAnalyzeSecurity: RamCostConstants.ScriptHackAnalyzeRamCost,
|
||||
hackAnalyzeChance: RamCostConstants.ScriptHackAnalyzeRamCost,
|
||||
sleep: 0,
|
||||
asleep: 0,
|
||||
share: 2.4,
|
||||
getSharePower: 0.2,
|
||||
grow: RamCostConstants.ScriptGrowRamCost,
|
||||
growthAnalyze: RamCostConstants.ScriptGrowthAnalyzeRamCost,
|
||||
growthAnalyzeSecurity: RamCostConstants.ScriptGrowthAnalyzeRamCost,
|
||||
weaken: RamCostConstants.ScriptWeakenRamCost,
|
||||
weakenAnalyze: RamCostConstants.ScriptWeakenAnalyzeRamCost,
|
||||
print: 0,
|
||||
printf: 0,
|
||||
tprint: 0,
|
||||
clearLog: 0,
|
||||
disableLog: 0,
|
||||
enableLog: 0,
|
||||
isLogEnabled: 0,
|
||||
getScriptLogs: 0,
|
||||
nuke: RamCostConstants.ScriptPortProgramRamCost,
|
||||
brutessh: RamCostConstants.ScriptPortProgramRamCost,
|
||||
ftpcrack: RamCostConstants.ScriptPortProgramRamCost,
|
||||
relaysmtp: RamCostConstants.ScriptPortProgramRamCost,
|
||||
httpworm: RamCostConstants.ScriptPortProgramRamCost,
|
||||
sqlinject: RamCostConstants.ScriptPortProgramRamCost,
|
||||
run: RamCostConstants.ScriptRunRamCost,
|
||||
exec: RamCostConstants.ScriptExecRamCost,
|
||||
spawn: RamCostConstants.ScriptSpawnRamCost,
|
||||
kill: RamCostConstants.ScriptKillRamCost,
|
||||
killall: RamCostConstants.ScriptKillRamCost,
|
||||
exit: 0,
|
||||
atExit: 0,
|
||||
scp: RamCostConstants.ScriptScpRamCost,
|
||||
ls: RamCostConstants.ScriptScanRamCost,
|
||||
ps: RamCostConstants.ScriptScanRamCost,
|
||||
getRecentScripts: RamCostConstants.ScriptRecentScriptsRamCost,
|
||||
hasRootAccess: RamCostConstants.ScriptHasRootAccessRamCost,
|
||||
getIp: RamCostConstants.ScriptGetHostnameRamCost,
|
||||
getHostname: RamCostConstants.ScriptGetHostnameRamCost,
|
||||
getHackingLevel: RamCostConstants.ScriptGetHackingLevelRamCost,
|
||||
getHackingMultipliers: RamCostConstants.ScriptGetMultipliersRamCost,
|
||||
getHacknetMultipliers: RamCostConstants.ScriptGetMultipliersRamCost,
|
||||
getBitNodeMultipliers: RamCostConstants.ScriptGetMultipliersRamCost,
|
||||
getServer: RamCostConstants.ScriptGetMultipliersRamCost / 2,
|
||||
getServerMoneyAvailable: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerSecurityLevel: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerBaseSecurityLevel: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerMinSecurityLevel: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerRequiredHackingLevel: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerMaxMoney: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerGrowth: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerNumPortsRequired: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerRam: RamCostConstants.ScriptGetServerRamCost,
|
||||
getServerMaxRam: RamCostConstants.ScriptGetServerMaxRam,
|
||||
getServerUsedRam: RamCostConstants.ScriptGetServerUsedRam,
|
||||
serverExists: RamCostConstants.ScriptGetServerRamCost,
|
||||
fileExists: RamCostConstants.ScriptFileExistsRamCost,
|
||||
isRunning: RamCostConstants.ScriptIsRunningRamCost,
|
||||
getPurchasedServerLimit: RamCostConstants.ScriptGetPurchasedServerLimit,
|
||||
getPurchasedServerMaxRam: RamCostConstants.ScriptGetPurchasedServerMaxRam,
|
||||
getPurchasedServerCost: RamCostConstants.ScriptGetPurchaseServerRamCost,
|
||||
purchaseServer: RamCostConstants.ScriptPurchaseServerRamCost,
|
||||
deleteServer: RamCostConstants.ScriptPurchaseServerRamCost,
|
||||
getPurchasedServers: RamCostConstants.ScriptPurchaseServerRamCost,
|
||||
write: 0,
|
||||
tryWritePort: 0,
|
||||
read: 0,
|
||||
peek: 0,
|
||||
clear: 0,
|
||||
writePort: 0,
|
||||
readPort: 0,
|
||||
getPortHandle: 0,
|
||||
rm: RamCostConstants.ScriptReadWriteRamCost,
|
||||
scriptRunning: RamCostConstants.ScriptArbScriptRamCost,
|
||||
scriptKill: RamCostConstants.ScriptArbScriptRamCost,
|
||||
getScriptName: 0,
|
||||
getScriptRam: RamCostConstants.ScriptGetScriptRamCost,
|
||||
getHackTime: RamCostConstants.ScriptGetHackTimeRamCost,
|
||||
getGrowTime: RamCostConstants.ScriptGetHackTimeRamCost,
|
||||
getWeakenTime: RamCostConstants.ScriptGetHackTimeRamCost,
|
||||
getScriptIncome: RamCostConstants.ScriptGetScriptRamCost,
|
||||
getScriptExpGain: RamCostConstants.ScriptGetScriptRamCost,
|
||||
getRunningScript: RamCostConstants.ScriptGetRunningScriptRamCost,
|
||||
nFormat: 0,
|
||||
tFormat: 0,
|
||||
getTimeSinceLastAug: RamCostConstants.ScriptGetHackTimeRamCost,
|
||||
prompt: 0,
|
||||
wget: 0,
|
||||
getFavorToDonate: RamCostConstants.ScriptGetFavorToDonate,
|
||||
getPlayer: RamCostConstants.ScriptSingularityFn1RamCost / 4,
|
||||
mv: 0,
|
||||
getOwnedSourceFiles: RamCostConstants.ScriptGetOwnedSourceFiles,
|
||||
tail: 0,
|
||||
toast: 0,
|
||||
heart: {
|
||||
// Easter egg function
|
||||
break: 0,
|
||||
|
||||
Reference in New Issue
Block a user