numCycleForGrowth() function now accoutns for BitNode growth multiplier. Cleaned up docuemntation

This commit is contained in:
danielyxie 2019-03-19 17:53:46 -07:00
parent f7fd3c859f
commit 4bdb34bc7b
6 changed files with 15 additions and 9 deletions

@ -1,5 +1,5 @@
enableLog() Netscript Function enableLog() Netscript Function
============================= ==============================
.. js:function:: enableLog(fn) .. js:function:: enableLog(fn)

@ -4,7 +4,7 @@ purchaseServer() Netscript Function
.. js:function:: purchaseServer(hostname, ram) .. js:function:: purchaseServer(hostname, ram)
:param string hostname: Hostname of the purchased server :param string hostname: Hostname of the purchased server
:param number ram: Amount of RAM of the purchased server. Must be a power of 2 (2, 4, 8, 16, etc.). Maximum value of getPurchasedServerMaxRam() :param number ram: Amount of RAM of the purchased server. Must be a power of 2. Maximum value of :js:func:`getPurchasedServerMaxRam`
:RAM cost: 2.25 GB :RAM cost: 2.25 GB
Purchased a server with the specified hostname and amount of RAM. Purchased a server with the specified hostname and amount of RAM.

@ -1,7 +1,11 @@
workForCompany() Netscript Function workForCompany() Netscript Function
=================================== ===================================
.. js:function:: workForCompany() .. js:function:: workForCompany(companyName=lastCompany)
:param string companyName: Name of company to work for. Must be an exact match.
Optional. If not specified, this argument defaults to
the last job that you worked
If you are not in BitNode-4, then you must have Level 2 of Source-File 4 in order to use this function. If you are not in BitNode-4, then you must have Level 2 of Source-File 4 in order to use this function.

@ -1213,19 +1213,19 @@ function initAugmentations() {
//Illuminati //Illuminati
var QLink = new Augmentation({ var QLink = new Augmentation({
name:AugmentationNames.QLink, repCost:750e3, moneyCost:10e12, name:AugmentationNames.QLink, repCost:750e3, moneyCost:5e12,
info:"A brain implant that wirelessly connects you to the Illuminati's " + info:"A brain implant that wirelessly connects you to the Illuminati's " +
"quantum supercomputer, allowing you to access and use its incredible " + "quantum supercomputer, allowing you to access and use its incredible " +
"computing power.<br><br>" + "computing power.<br><br>" +
"This augmentation:<br>" + "This augmentation:<br>" +
"Increases the player's hacking skill by 100%.<br>" + "Increases the player's hacking skill by 50%.<br>" +
"Increases the player's hacking speed by 50%.<br>" + "Increases the player's hacking speed by 50%.<br>" +
"Increases the player's chance of successfully performing a hack by 150%.<br>" + "Increases the player's chance of successfully performing a hack by 150%.<br>" +
"Increases the amount of money the player gains from hacking by 500%.", "Increases the amount of money the player gains from hacking by 500%.",
hacking_speed_mult: 1.5, hacking_speed_mult: 1.5,
hacking_chance_mult: 2.5, hacking_chance_mult: 2.5,
hacking_money_mult: 6, hacking_money_mult: 6,
hacking_mult: 2, hacking_mult: 1.5,
}); });
QLink.addToFactions(["Illuminati"]); QLink.addToFactions(["Illuminati"]);
if (augmentationExists(AugmentationNames.QLink)) { if (augmentationExists(AugmentationNames.QLink)) {

@ -302,6 +302,7 @@ export let CONSTANTS: IMap<any> = {
** Training employees is now 3x more effective ** Training employees is now 3x more effective
** Bug Fix: An industry's products are now properly separated between different cities ** Bug Fix: An industry's products are now properly separated between different cities
* The QLink Augemntation is now significantly stronger (by hydroflame)
* Added a Netscript API for Duplicate Sleeves (by hydroflame) * Added a Netscript API for Duplicate Sleeves (by hydroflame)
* Modified the multipliers of BitNode-3 and BitNode-8 to make them slightly harder * Modified the multipliers of BitNode-3 and BitNode-8 to make them slightly harder
* After installing Augmentations, Duplicate Sleeves will now default to Synchronize if their Shock is 0 * After installing Augmentations, Duplicate Sleeves will now default to Synchronize if their Shock is 0

@ -18,7 +18,8 @@ export function numCycleForGrowth(server: Server, growth: number, p: IPlayer) {
const serverGrowthPercentage = server.serverGrowth / 100; const serverGrowthPercentage = server.serverGrowth / 100;
const cycles = Math.log(growth)/(Math.log(ajdGrowthRate) * p.hacking_grow_mult * serverGrowthPercentage); const cycles = Math.log(growth)/(Math.log(ajdGrowthRate) * p.hacking_grow_mult * serverGrowthPercentage * BitNodeMultipliers.ServerGrowthRate);
return cycles; return cycles;
} }