NETSCRIPT: Add functionality and support to fully allow Players to use IP addresses in place of hostnames (#1990)

This commit is contained in:
Naga
2025-04-10 21:41:37 -04:00
committed by GitHub
parent d28a06e764
commit 0aaa28054a
84 changed files with 610 additions and 400 deletions
+2
View File
@@ -547,6 +547,7 @@ export const RamCosts: RamCostTree<NSFull> = {
getRecentScripts: RamCostConstants.RecentScripts,
hasRootAccess: RamCostConstants.HasRootAccess,
getHostname: RamCostConstants.GetHostname,
getIP: RamCostConstants.GetHostname,
getHackingLevel: RamCostConstants.GetHackingLevel,
getHackingMultipliers: 0.25,
getHacknetMultipliers: 0.25,
@@ -562,6 +563,7 @@ export const RamCosts: RamCostTree<NSFull> = {
getServerNumPortsRequired: RamCostConstants.GetServer,
getServerMaxRam: RamCostConstants.GetServerMaxRam,
getServerUsedRam: RamCostConstants.GetServerUsedRam,
dnsLookup: 0.05,
serverExists: RamCostConstants.GetServer,
fileExists: RamCostConstants.FileExists,
isRunning: RamCostConstants.IsRunning,