change SF9 to seem more appealing

This commit is contained in:
Olivier Gagnon 2021-10-01 23:20:44 -04:00
parent 94550dbaee
commit 826357e8b8
4 changed files with 30 additions and 2 deletions

@ -396,6 +396,15 @@ BitNodes["BitNode9"] = new BitNode(
<br /> <br />
(Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing (Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing
Augmentations) Augmentations)
<br />
<br />
This Source-File also increases your hacknet multipliers by:
<br />
Level 1: 8%
<br />
Level 2: 12%
<br />
Level 3: 14%
</> </>
), ),
); );

@ -18,7 +18,7 @@ export const HacknetNodeConstants: {
MaxRam: number; MaxRam: number;
MaxCores: number; MaxCores: number;
} = { } = {
MoneyGainPerLevel: 1.6, MoneyGainPerLevel: 1.5,
BaseCost: 1000, BaseCost: 1000,
LevelBaseCost: 1, LevelBaseCost: 1,

@ -152,6 +152,15 @@ SourceFiles["SourceFile9"] = new SourceFile(
<br /> <br />
(Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing (Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing
Augmentations) Augmentations)
<br />
<br />
This Source-File also increases your hacknet multipliers by:
<br />
Level 1: 8%
<br />
Level 2: 12%
<br />
Level 3: 14%
</> </>
), ),
); );

@ -133,7 +133,17 @@ export function applySourceFile(srcFile: PlayerOwnedSourceFile): void {
} }
case 9: { case 9: {
// Hacktocracy // Hacktocracy
// This has non-multiplier effects let mult = 0;
for (let i = 0; i < srcFile.lvl; ++i) {
mult += 8 / Math.pow(2, i);
}
const incMult = 1 + mult / 100;
const decMult = 1 - mult / 100;
Player.hacknet_node_core_cost_mult *= decMult;
Player.hacknet_node_level_cost_mult *= decMult;
Player.hacknet_node_money_mult *= incMult;
Player.hacknet_node_purchase_cost_mult *= decMult;
Player.hacknet_node_ram_cost_mult *= decMult;
break; break;
} }
case 10: { case 10: {