mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
Playtesting - Rebalancing and bug fixes
This commit is contained in:
parent
75125d5891
commit
17efb718a4
@ -264,7 +264,7 @@ initAugmentations = function() {
|
||||
AddToAugmentations(EnhancedMyelinSheathing);
|
||||
|
||||
var SynapticEnhancement = new Augmentation("Synaptic Enhancement Implant");
|
||||
SynapticEnhancement.setRequirements(50000, 35000000);
|
||||
SynapticEnhancement.setRequirements(50000, 10000000);
|
||||
SynapticEnhancement.setInfo("A small cranial implant that continuously uses weak electric signals to stimulate the brain and \n" +
|
||||
"induce stronger synaptic activity. This improves the the user's cognitive abilities.\n\n" +
|
||||
"This augmentation increases the player's hacking speed by 1%.");
|
||||
@ -451,7 +451,7 @@ initAugmentations = function() {
|
||||
|
||||
//Misc augmentations
|
||||
var Neurotrainer1 = new Augmentation("Neurotrainer I");
|
||||
Neurotrainer1.setRequirements(50000, 35000000);
|
||||
Neurotrainer1.setRequirements(50000, 20000000);
|
||||
Neurotrainer1.setInfo("A decentralized cranial implant that improves the brain's ability to learn. It is\n" +
|
||||
"installed by releasing millions of nanobots into the human brain, each of which\n" +
|
||||
"attaches to a different neural pathway to enhance the brain's ability to retain\n" +
|
||||
|
@ -141,6 +141,7 @@ initFactions = function() {
|
||||
AddToFactions(TianDiHui);
|
||||
var CyberSec = new Faction("CyberSec");
|
||||
CyberSec.setInfo(FactionInfo.CyberSecInfo);
|
||||
CyberSec.setAugmentationMultipliers(0.8, 0.8);
|
||||
AddToFactions(CyberSec);
|
||||
}
|
||||
|
||||
@ -736,6 +737,11 @@ displayFactionAugmentations = function(factionName) {
|
||||
pElem.style.display = "inline-block";
|
||||
aElem.innerHTML = aug.name;
|
||||
|
||||
aElem.addEventListener("click", function() {
|
||||
console.log("here");
|
||||
purchaseAugmentationBoxCreate(aug, faction);
|
||||
});
|
||||
|
||||
span.appendChild(aElem);
|
||||
span.appendChild(pElem);
|
||||
|
||||
|
@ -287,7 +287,6 @@ PlayerObject.prototype.gainCharismaExp = function(exp) {
|
||||
|
||||
/* Working for Company */
|
||||
PlayerObject.prototype.finishWork = function(cancelled) {
|
||||
console.log("HERE");
|
||||
//Since the work was cancelled early, player only gains half of what they've earned so far
|
||||
var cancMult = 1;
|
||||
if (cancelled) {cancMult = 2;}
|
||||
@ -439,7 +438,6 @@ PlayerObject.prototype.work = function(numCycles) {
|
||||
|
||||
/* Working for Faction */
|
||||
PlayerObject.prototype.finishFactionWork = function(cancelled, faction) {
|
||||
console.log("HERE");
|
||||
this.gainHackingExp(this.workHackExpGained);
|
||||
this.gainStrengthExp(this.workStrExpGained);
|
||||
this.gainDefenseExp(this.workDefExpGained);
|
||||
|
@ -643,7 +643,7 @@ processServerGrowth = function(numCycles) {
|
||||
var numServerGrowthCyclesAdjusted = numServerGrowthCycles * serverGrowthPercentage;
|
||||
|
||||
//Apply serverGrowth for the calculated number of growth cycles
|
||||
var serverGrowth = Math.pow(1.0004, numServerGrowthCyclesAdjusted);
|
||||
var serverGrowth = Math.pow(1.00075, numServerGrowthCyclesAdjusted);
|
||||
//console.log("serverGrowth ratio: " + serverGrowth);
|
||||
server.moneyAvailable *= serverGrowth;
|
||||
}
|
||||
|
@ -867,7 +867,9 @@ var Engine = {
|
||||
|
||||
processServerGrowth(numCyclesOffline); //Should be done before offline production for scripts
|
||||
loadAllRunningScripts(); //This also takes care of offline production for those scripts
|
||||
Player.work(numCyclesOffline);
|
||||
if (Player.isWorking) {
|
||||
Player.work(numCyclesOffline);
|
||||
}
|
||||
} else {
|
||||
//No save found, start new game
|
||||
console.log("Initializing new game");
|
||||
|
@ -28,6 +28,7 @@ purchaseAugmentationBoxSetText = function(txt) {
|
||||
|
||||
//ram argument is in GB
|
||||
purchaseAugmentationBoxCreate = function(aug, fac) {
|
||||
console.log("here");
|
||||
purchaseAugmentationBoxSetText("Would you like to purchase the " + aug.name + " Augmentation for $" +
|
||||
(aug.baseCost * fac.augmentationPriceMult) + "?");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user