This commit is contained in:
Olivier Gagnon
2021-08-15 02:14:07 -04:00
parent 796d91835c
commit 67e5e413e4
12 changed files with 63 additions and 27 deletions
+8 -3
View File
@@ -14,6 +14,7 @@ import { saveObject } from "../SaveObject";
import { Page, routing } from "../ui/navigationTracking";
import { onExport } from "../ExportBonus";
import { Programs } from "../Programs/Programs";
import { SourceFileFlags } from "../SourceFile/SourceFileFlags";
import { dialogBoxCreate } from "../../utils/DialogBox";
import { clearObject } from "../../utils/helpers/clearObject";
@@ -1391,7 +1392,6 @@ function initAugmentations() {
}
AddToAugmentations(PhotosyntheticCells);
console.log(Programs);
// BitRunners
const Neurolink = new Augmentation({
name:AugmentationNames.Neurolink, repCost:8.75e5, moneyCost:4.375e9,
@@ -1493,7 +1493,7 @@ function initAugmentations() {
// Aevum
const PCMatrix = new Augmentation({
name:AugmentationNames.PCMatrix, repCost:1e4, moneyCost:1e7,
name:AugmentationNames.PCMatrix, repCost:100e3, moneyCost:2e9,
info:"A 'Probability Computation Matrix' is installed in the frontal cortex. This implant " +
"uses advanced mathematical algorithims to rapidly identify and compute statistical " +
"outcomes of nearly every situation.",
@@ -1865,8 +1865,13 @@ function initAugmentations() {
resetAugmentation(BladesSimulacrum);
}
try {
console.log([1, 0.96, 0.94, 0.93][SourceFileFlags[11]]);
} catch(err) {
console.log(err);
}
// Update costs based on how many have been purchased
mult = Math.pow(CONSTANTS.MultipleAugMultiplier, Player.queuedAugmentations.length);
mult = Math.pow(CONSTANTS.MultipleAugMultiplier * [1, 0.96, 0.94, 0.93][SourceFileFlags[11]], Player.queuedAugmentations.length);
for (var name in Augmentations) {
if (Augmentations.hasOwnProperty(name)) {
Augmentations[name].baseCost *= mult;
+5 -1
View File
@@ -231,7 +231,11 @@ BitNodes["BitNode11"] = new BitNode(11, "The Big Crash", "Okay. Sell it all.",
"This Source-File also increases the player's company salary and reputation gain multipliers by:<br><br>" +
"Level 1: 32%<br>" +
"Level 2: 48%<br>" +
"Level 3: 56%");
"Level 3: 56%<br><br>" +
"It also reduces the price increase for every aug bought by:<br><br>"+
"Level 1: 4%<br>"+
"Level 2: 6%<br>"+
"Level 3: 7%");
BitNodes["BitNode12"] = new BitNode(12, "The Recursion", "Repeat.",
"To iterate is human, to recurse divine.<br><br>" +
"Every time this BitNode is destroyed, it becomes slightly harder. Destroying this BitNode will give you Source-File 12, or " +
+8 -1
View File
@@ -225,11 +225,18 @@ export const CONSTANTS: IMap<any> = {
TotalNumBitNodes: 24,
LatestUpdate: `
v0.52.2 - 2021-07-10 TITLE (hydroflame & community)
v0.52.2 - 2021-07-15 Oh yeah, BN11 is a thing (drunk hydroflame tbh)
-------------------------------------------
** Source-Files **
* Source-File 11 now also provides a small reduction to the price increase
multiplier.
** Augmentations **
* New Augmentation offered by Aevum, themed around 777 and offers some basic
programs.
* Augmentation descriptions are now more concise and consistent.
`,
}
+3 -2
View File
@@ -20,6 +20,7 @@ import {
getFactionSecurityWorkRepGain,
getFactionFieldWorkRepGain,
} from "../PersonObjects/formulas/reputation";
import { SourceFileFlags } from "../SourceFile/SourceFileFlags";
import { Page, routing } from "../ui/navigationTracking";
import { dialogBoxCreate } from "../../utils/DialogBox";
@@ -194,13 +195,13 @@ export function purchaseAugmentation(aug, fac, sing=false) {
aug.baseCost = 750e3 * mult * BitNodeMultipliers.AugmentationMoneyCost;
for (var i = 0; i < Player.queuedAugmentations.length-1; ++i) {
aug.baseCost *= CONSTANTS.MultipleAugMultiplier;
aug.baseCost *= (CONSTANTS.MultipleAugMultiplier * [1, 0.96, 0.94, 0.93][SourceFileFlags[11]]);
}
}
for (var name in Augmentations) {
if (Augmentations.hasOwnProperty(name)) {
Augmentations[name].baseCost *= CONSTANTS.MultipleAugMultiplier;
Augmentations[name].baseCost *= (CONSTANTS.MultipleAugMultiplier * [1, 0.96, 0.94, 0.93][SourceFileFlags[11]]);
}
}
+5 -1
View File
@@ -60,5 +60,9 @@ SourceFiles["SourceFile11"] = new SourceFile(11, "This Source-File makes it so t
" increases the player's company salary and reputation gain multipliers by:<br><br>" +
"Level 1: 32%<br>" +
"Level 2: 48%<br>" +
"Level 3: 56%<br>");
"Level 3: 56%<br><br>" +
"It also reduces the price increase for every aug bought by:<br><br>"+
"Level 1: 4%<br>"+
"Level 2: 6%<br>"+
"Level 3: 7%");
SourceFiles["SourceFile12"] = new SourceFile(12, "This Source-File lets the player start with Neuroflux Governor equal to the level of this Source-File.");
+2 -1
View File
@@ -1082,12 +1082,13 @@ const Engine = {
initBitNodeMultipliers(Player);
Engine.setDisplayElements(); // Sets variables for important DOM elements
Engine.init(); // Initialize buttons, work, etc.
updateSourceFileFlags(Player);
initAugmentations(); // Also calls Player.reapplyAllAugmentations()
Player.reapplyAllSourceFiles();
if (Player.hasWseAccount) {
initSymbolToStockMap();
}
updateSourceFileFlags(Player);
// Calculate the number of cycles have elapsed while offline
Engine._lastUpdate = new Date().getTime();