Finished implementing Hacknet Nodes. Seems to be working fine

This commit is contained in:
Daniel Xie
2017-04-27 15:02:58 -05:00
parent e2947cc8c3
commit b61754ddd0
7 changed files with 293 additions and 47 deletions
+12 -2
View File
@@ -8,8 +8,18 @@ CONSTANTS = {
//How much reputation is needed to join a megacorporation's faction
CorpFactionRepRequirement: 250000,
//Base cost for 1GB of RAM
BaseCostFor1GBOfRam: 50000,
/* Base costs */
BaseCostFor1GBOfRam: 50000, //1 GB of RAM
BaseCostForHacknetNode: 1000,
BaseCostForHacknetNodeCore: 1000000,
/* Hacknet Node constants */
HacknetNodeMoneyGainPerLevel: 0.25,
HacknetNodePurchaseNextMult: 1.2; //Multiplier when purchasing an additional hacknet node
HacknetNodeUpgradeLevelMult: 1.08, //Multiplier for cost when upgrading level
HacknetNodeUpgradeRamMult: 1.2, //Multiplier for cost when upgrading RAM
HacknetNodeUpgradeCoreMult: 1.5, //Multiplier for cost when buying another core
/* Script related things */
//Time (ms) it takes to run one operation in Netscript.