mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
Added blood donation bonus
This commit is contained in:
parent
afbfb46775
commit
52e27e317e
@ -1,5 +1,7 @@
|
||||
# Bitburner
|
||||
|
||||
[![Join Discord](https://img.shields.io/discord/415207508303544321)](https://discord.gg/TFc3hKD)
|
||||
|
||||
[![Build Status](https://github.com/danielyxie/bitburner/actions/workflows/ci.yml/badge.svg?branch=dev)](https://github.com/danielyxie/bitburner/actions/workflows/ci.yml)
|
||||
|
||||
Bitburner is a programming-based [incremental game](https://en.wikipedia.org/wiki/Incremental_game)
|
||||
|
@ -5,6 +5,7 @@ import { Programs } from "../Programs/Programs";
|
||||
import { WHRNG } from "../Casino/RNG";
|
||||
import React from "react";
|
||||
import { FactionNames } from "../Faction/data/FactionNames";
|
||||
import { CONSTANTS } from "../Constants";
|
||||
|
||||
function getRandomBonus(): any {
|
||||
const bonuses = [
|
||||
@ -1892,6 +1893,8 @@ export const initChurchOfTheMachineGodAugmentations = (): Augmentation[] => [
|
||||
];
|
||||
|
||||
export function initNeuroFluxGovernor(): Augmentation {
|
||||
const donationBonus = CONSTANTS.Donations / 1e6 / 100; // 1 millionth of a percent per donation
|
||||
console.log(donationBonus * 100);
|
||||
return new Augmentation({
|
||||
name: AugmentationNames.NeuroFluxGovernor,
|
||||
repCost: 500,
|
||||
@ -1904,35 +1907,35 @@ export function initNeuroFluxGovernor(): Augmentation {
|
||||
stats: (
|
||||
<>
|
||||
This special augmentation can be leveled up infinitely. Each level of this augmentation increases MOST
|
||||
multipliers by 1%, stacking multiplicatively.
|
||||
multipliers by 1% (+{donationBonus * 100}% boosted by real life blood donations), stacking multiplicatively.
|
||||
</>
|
||||
),
|
||||
hacking_chance_mult: 1.01,
|
||||
hacking_speed_mult: 1.01,
|
||||
hacking_money_mult: 1.01,
|
||||
hacking_grow_mult: 1.01,
|
||||
hacking_mult: 1.01,
|
||||
strength_mult: 1.01,
|
||||
defense_mult: 1.01,
|
||||
dexterity_mult: 1.01,
|
||||
agility_mult: 1.01,
|
||||
charisma_mult: 1.01,
|
||||
hacking_exp_mult: 1.01,
|
||||
strength_exp_mult: 1.01,
|
||||
defense_exp_mult: 1.01,
|
||||
dexterity_exp_mult: 1.01,
|
||||
agility_exp_mult: 1.01,
|
||||
charisma_exp_mult: 1.01,
|
||||
company_rep_mult: 1.01,
|
||||
faction_rep_mult: 1.01,
|
||||
crime_money_mult: 1.01,
|
||||
crime_success_mult: 1.01,
|
||||
hacknet_node_money_mult: 1.01,
|
||||
hacknet_node_purchase_cost_mult: 0.99,
|
||||
hacknet_node_ram_cost_mult: 0.99,
|
||||
hacknet_node_core_cost_mult: 0.99,
|
||||
hacknet_node_level_cost_mult: 0.99,
|
||||
work_money_mult: 1.01,
|
||||
hacking_chance_mult: 1.01 + donationBonus,
|
||||
hacking_speed_mult: 1.01 + donationBonus,
|
||||
hacking_money_mult: 1.01 + donationBonus,
|
||||
hacking_grow_mult: 1.01 + donationBonus,
|
||||
hacking_mult: 1.01 + donationBonus,
|
||||
strength_mult: 1.01 + donationBonus,
|
||||
defense_mult: 1.01 + donationBonus,
|
||||
dexterity_mult: 1.01 + donationBonus,
|
||||
agility_mult: 1.01 + donationBonus,
|
||||
charisma_mult: 1.01 + donationBonus,
|
||||
hacking_exp_mult: 1.01 + donationBonus,
|
||||
strength_exp_mult: 1.01 + donationBonus,
|
||||
defense_exp_mult: 1.01 + donationBonus,
|
||||
dexterity_exp_mult: 1.01 + donationBonus,
|
||||
agility_exp_mult: 1.01 + donationBonus,
|
||||
charisma_exp_mult: 1.01 + donationBonus,
|
||||
company_rep_mult: 1.01 + donationBonus,
|
||||
faction_rep_mult: 1.01 + donationBonus,
|
||||
crime_money_mult: 1.01 + donationBonus,
|
||||
crime_success_mult: 1.01 + donationBonus,
|
||||
hacknet_node_money_mult: 1.01 + donationBonus,
|
||||
hacknet_node_purchase_cost_mult: 1 / (1.01 + donationBonus),
|
||||
hacknet_node_ram_cost_mult: 1 / (1.01 + donationBonus),
|
||||
hacknet_node_core_cost_mult: 1 / (1.01 + donationBonus),
|
||||
hacknet_node_level_cost_mult: 1 / (1.01 + donationBonus),
|
||||
work_money_mult: 1.01 + donationBonus,
|
||||
factions: Object.values(FactionNames),
|
||||
});
|
||||
}
|
||||
|
@ -114,6 +114,7 @@ export const CONSTANTS: {
|
||||
AugmentationGraftingTimeBase: number;
|
||||
EntropyEffect: number;
|
||||
TotalNumBitNodes: number;
|
||||
Donations: number; // number of blood/plasma/palette donation the dev have verified., boosts NFG
|
||||
LatestUpdate: string;
|
||||
} = {
|
||||
VersionString: "1.6.4",
|
||||
@ -286,6 +287,8 @@ export const CONSTANTS: {
|
||||
// BitNode/Source-File related stuff
|
||||
TotalNumBitNodes: 24,
|
||||
|
||||
Donations: 2,
|
||||
|
||||
LatestUpdate: `
|
||||
v1.6.3 - 2022-04-01 Few stanek fixes
|
||||
----------------------------
|
||||
|
@ -37,6 +37,7 @@ import { ISkillProgress } from "../formulas/skill";
|
||||
import { PlayerAchievement } from "../../Achievements/Achievements";
|
||||
import { cyrb53 } from "../../utils/StringHelperFunctions";
|
||||
import { getRandomInt } from "../../utils/helpers/getRandomInt";
|
||||
import { CONSTANTS } from "src/Constants";
|
||||
|
||||
export class PlayerObject implements IPlayer {
|
||||
// Class members
|
||||
@ -354,7 +355,7 @@ export class PlayerObject implements IPlayer {
|
||||
this.faction_rep_mult = 1;
|
||||
|
||||
//Money
|
||||
this.money = 1000;
|
||||
this.money = 1000 + CONSTANTS.Donations;
|
||||
|
||||
//Location information
|
||||
this.city = CityName.Sector12;
|
||||
|
@ -105,7 +105,7 @@ export function prestigeAugmentation(this: PlayerObject): void {
|
||||
this.agility_exp = 0;
|
||||
this.charisma_exp = 0;
|
||||
|
||||
this.money = 1000;
|
||||
this.money = 1000 + CONSTANTS.Donations;
|
||||
|
||||
this.city = CityName.Sector12;
|
||||
this.location = LocationName.TravelAgency;
|
||||
|
Loading…
Reference in New Issue
Block a user