Source-File 12's effect is now multiplicative with itself again (reverted from a previous update). Source-File 6 now also affects combat stat level, not just exp gain

This commit is contained in:
danielyxie 2018-07-18 16:00:52 -05:00
parent af40edfb7d
commit 08862109fe
4 changed files with 17 additions and 9 deletions

File diff suppressed because one or more lines are too long

@ -111,7 +111,7 @@ function initBitNodes() {
"Crimes and Infiltration are 50% less profitable<br><br>" + "Crimes and Infiltration are 50% less profitable<br><br>" +
"Destroying this BitNode will give you Source-File 6, or if you already have this Source-File it will upgrade " + "Destroying this BitNode will give you Source-File 6, or if you already have this Source-File it will upgrade " +
"its level up to a maximum of 3. This Source-File allows you to access the NSA's Bladeburner Division in other " + "its level up to a maximum of 3. This Source-File allows you to access the NSA's Bladeburner Division in other " +
"BitNodes. In addition, this Source-File will raise the experience gain rate of all your combat stats by:<br><br>" + "BitNodes. In addition, this Source-File will raise both the level and experience gain rate of all your combat stats by:<br><br>" +
"Level 1: 8%<br>" + "Level 1: 8%<br>" +
"Level 2: 12%<br>" + "Level 2: 12%<br>" +
"Level 3: 14%"); "Level 3: 14%");
@ -182,8 +182,8 @@ function initBitNodes() {
"To iterate is human, to recurse divine.<br><br>" + "To iterate is human, to recurse divine.<br><br>" +
"Every time this BitNode is destroyed, it becomes slightly harder. Destroying this BitNode will give your Souce-File 12, or " + "Every time this BitNode is destroyed, it becomes slightly harder. Destroying this BitNode will give your Souce-File 12, or " +
"if you already have this Source-File it will upgrade its level. There is no maximum level for Source-File 12. Each level " + "if you already have this Source-File it will upgrade its level. There is no maximum level for Source-File 12. Each level " +
"of Source-File 12 will increase all of your multipliers by 1%. This effect is additive with itself, NOT multiplicative. In other words, " + "of Source-File 12 will increase all of your multipliers by 1%. This effect is multiplicative with itself. " +
"level N of this Source-File will increase all of your multipliers by N%"); "In other words, level N of this Source-File will result in a multiplier of 1.01^N (or 0.99^N for multipliers that decrease)");
//Books: Frontera, Shiner //Books: Frontera, Shiner
BitNodes["BitNode13"] = new BitNode(13, "fOS", "COMING SOON"); //Unlocks the new game mode and the rest of the BitNodes BitNodes["BitNode13"] = new BitNode(13, "fOS", "COMING SOON"); //Unlocks the new game mode and the rest of the BitNodes
BitNodes["BitNode14"] = new BitNode(14, "", "COMING SOON"); BitNodes["BitNode14"] = new BitNode(14, "", "COMING SOON");

@ -487,10 +487,14 @@ let CONSTANTS = {
LatestUpdate: LatestUpdate:
"v0.40.0<br>" + "v0.40.0<br>" +
"* Netscript 1.0 (NS1) now uses a fully-fledged ES5 Javascript Interpreter. This means many new features are now available in NS, and this also fixes several bugs.<br>" +
"* Added getCurrentAction() to Bladeburner API<br>" + "* Added getCurrentAction() to Bladeburner API<br>" +
"* Completely re-designed the Hacknet Node API<br>" +
"* getSkillLevel() in Bladeburner API now returns an error if no argument is passed in (as opposed to an object with all skill levels). This may break scripts<br>" + "* getSkillLevel() in Bladeburner API now returns an error if no argument is passed in (as opposed to an object with all skill levels). This may break scripts<br>" +
"* Minimum Netscript execution time reduced from 15ms to 10ms (configurable in Options)<br>" + "* Minimum Netscript execution time reduced from 15ms to 10ms (configurable in Options)<br>" +
"* HP is now reset (restored) when Augmenting<br>" + "* HP is now reset (restored) when Augmenting<br>" +
"* Source-File 6 now increases both the level and experience gain of all combat stats (it was only experience gain previously)<br>" +
"* Reverted a previous change for Source-File 12. It's benefits are now multiplicative rather than additive<br>" +
"* Bug Fix: Infiltration buttons can no longer be clicked through NetscriptJS<br>" "* Bug Fix: Infiltration buttons can no longer be clicked through NetscriptJS<br>"
} }

@ -47,7 +47,7 @@ function initSourceFiles() {
"Level 2: 12%<br>" + "Level 2: 12%<br>" +
"Level 3: 14%"); "Level 3: 14%");
SourceFiles["SourceFile6"] = new SourceFile(6, "This Source-File allows you to access the NSA's Bladeburner Division in other " + SourceFiles["SourceFile6"] = new SourceFile(6, "This Source-File allows you to access the NSA's Bladeburner Division in other " +
"BitNodes. In addition, this Source-File will raise the experience gain rate of all your combat stats by:<br><br>" + "BitNodes. In addition, this Source-File will raise both the level and experience gain rate of all your combat stats by:<br><br>" +
"Level 1: 8%<br>" + "Level 1: 8%<br>" +
"Level 2: 12%<br>" + "Level 2: 12%<br>" +
"Level 3: 14%"); "Level 3: 14%");
@ -70,8 +70,8 @@ function initSourceFiles() {
"Level 1: 24%<br>" + "Level 1: 24%<br>" +
"Level 2: 36%<br>" + "Level 2: 36%<br>" +
"Level 3: 42%<br>"); "Level 3: 42%<br>");
SourceFiles["SourceFile12"] = new SourceFile(12, "This Source-File increases all your multipliers by 1% per level. This effect is additive with itself, " + SourceFiles["SourceFile12"] = new SourceFile(12, "This Source-File increases all your multipliers by 1% per level. This effect is multiplicative with itself. " +
"NOT multiplicative. In other words, level N of this Source-File will increase all of your multipliers by N%"); "In other words, level N of this Source-File will result in a multiplier of 1.01^N (or 0.99^N for multipliers that decrease)");
} }
function PlayerOwnedSourceFile(number, level) { function PlayerOwnedSourceFile(number, level) {
@ -168,6 +168,10 @@ function applySourceFile(srcFile) {
Player.defense_exp_mult *= incMult; Player.defense_exp_mult *= incMult;
Player.dexterity_exp_mult *= incMult; Player.dexterity_exp_mult *= incMult;
Player.agility_exp_mult *= incMult; Player.agility_exp_mult *= incMult;
Player.strength_mult *= incMult;
Player.defense_mult *= incMult;
Player.dexterity_mult *= incMult;
Player.agility_mult *= incMult;
break; break;
case 7: //Bladeburner 2079 case 7: //Bladeburner 2079
var mult = 0; var mult = 0;
@ -198,8 +202,8 @@ function applySourceFile(srcFile) {
Player.company_rep_mult *= incMult; Player.company_rep_mult *= incMult;
break; break;
case 12: //The Recursion case 12: //The Recursion
var inc = 1 + (srcFile.lvl/100); var inc = Math.pow(1.01, srcFile.lvl);
var dec = 1 - (srcFile.lvl/100); var dec = Math.pow(0.99, srcFile.lvl);
Player.hacking_chance_mult *= inc; Player.hacking_chance_mult *= inc;
Player.hacking_speed_mult *= inc; Player.hacking_speed_mult *= inc;