Rebalancing Gyms and training in Bladeburner. Updated Active Scripts UI page to update once per second. Updated changelog

This commit is contained in:
danielyxie
2018-05-10 12:14:45 -05:00
parent dfb5cbf02d
commit 024138eabd
9 changed files with 5787 additions and 5573 deletions
+2886 -2770
View File
File diff suppressed because it is too large Load Diff
+2886 -2770
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -1248,10 +1248,10 @@ Bladeburner.prototype.completeAction = function() {
break; break;
case ActionTypes["Training"]: case ActionTypes["Training"]:
this.stamina -= (0.5 * BaseStaminaLoss); this.stamina -= (0.5 * BaseStaminaLoss);
var strExpGain = 20 * Player.strength_exp_mult, var strExpGain = 30 * Player.strength_exp_mult,
defExpGain = 20 * Player.defense_exp_mult, defExpGain = 30 * Player.defense_exp_mult,
dexExpGain = 20 * Player.dexterity_exp_mult, dexExpGain = 30 * Player.dexterity_exp_mult,
agiExpGain = 20 * Player.agility_exp_mult, agiExpGain = 30 * Player.agility_exp_mult,
staminaGain = 0.04 * this.skillMultipliers.stamina; staminaGain = 0.04 * this.skillMultipliers.stamina;
Player.gainStrengthExp(strExpGain); Player.gainStrengthExp(strExpGain);
Player.gainDefenseExp(defExpGain); Player.gainDefenseExp(defExpGain);
+5 -7
View File
@@ -1147,21 +1147,19 @@ let CONSTANTS = {
"** Datamancer skill effect increased from 4% per level to 5%<br>" + "** Datamancer skill effect increased from 4% per level to 5%<br>" +
"** Slightly decreased the base stamina cost of contracts/operations<br>" + "** Slightly decreased the base stamina cost of contracts/operations<br>" +
"** Slightly increased the effects of the Tracer, Digital Observer, Short Circuit, Cloak, and Blade's Intuition skills<br>" + "** Slightly increased the effects of the Tracer, Digital Observer, Short Circuit, Cloak, and Blade's Intuition skills<br>" +
"** Training gives significantly more exp/s<br>" +
"* Crime, Infiltration, and Hacking are now slightly more profitable in BN-6<br>" + "* Crime, Infiltration, and Hacking are now slightly more profitable in BN-6<br>" +
"* Gyms are now more expensive, but give slightly more exp<br>" +
"* Added getScriptName() and getHacknetMultipliers() Netscript functions (added by Github user hydroflame)<br>" + "* Added getScriptName() and getHacknetMultipliers() Netscript functions (added by Github user hydroflame)<br>" +
"* getScriptRam() Netscript function now has default value for the second argument, which is hostname/ip (implemented by Github user hydroflame)<br>" + "* getScriptRam() Netscript function now has default value for the second argument, which is hostname/ip (implemented by Github user hydroflame)<br>" +
"* There is now a soft-cap on stock price, which means it's no longer possible for the price of a stock to reach insanely-high values<br>" + "* There is now a soft-cap on stock price, which means it's no longer possible for the price of a stock to reach insanely-high values<br>" +
"* The ctrl+b hotkey in the text editor is now also triggered by command+b or winkey+b<br>" + "* The ctrl+b hotkey in the text editor should now also be triggered by command+b on OSX (I don't have OSX so I can't confirm if this works)<br>" +
"* Many servers now have additional RAM<br>" + "* Many servers now have additional RAM<br>" +
"* Added an option to disable hotkeys/keyboard shortcuts<br>" + "* Added an option to disable hotkeys/keyboard shortcuts<br>" +
"* Refactored 'Active Scripts' UI page to optimize its performance<br>" + "* Refactored 'Active Scripts' UI page to optimize its performance<br>" +
"* Added a new .fconf setting: ENABLE_TIMESTAMP<br>" + "* Added a new .fconf Terminal setting: ENABLE_TIMESTAMP<br>" +
"* Bug Fix: Fixed a typo in the Fulcrum Technologies company name (Technolgies -> Technologies)<br>" + "* Bug Fix: Fixed a typo in the Fulcrum Technologies company name (Technolgies -> Technologies)<br>" +
"* Bug Fix: hacknetnodes keyword should no longer incur RAM cost if its in a comment<br>" + "* Bug Fix: hacknetnodes keyword should no longer incur RAM cost if its in a comment<br>"
"v0.36.0<br>" +
"* Added BN-6: Bladeburners<br>" +
"* Rebalanced many combat Augmentations so that they are slightly less powerful<br>" +
"* Bug Fix: When faction invites are suppressed, an invitation will no longer load the Faction page<br>"
} }
+4 -4
View File
@@ -565,13 +565,13 @@ function displayLocationContent() {
break; break;
case Locations.AevumCrushFitnessGym: case Locations.AevumCrushFitnessGym:
var costMult = 2, expMult = 1.5; var costMult = 3, expMult = 2;
displayGymLocationContent(costMult); displayGymLocationContent(costMult);
setGymLocationButtons(costMult, expMult); setGymLocationButtons(costMult, expMult);
break; break;
case Locations.AevumSnapFitnessGym: case Locations.AevumSnapFitnessGym:
var costMult = 6, expMult = 4; var costMult = 10, expMult = 5;
displayGymLocationContent(costMult); displayGymLocationContent(costMult);
setGymLocationButtons(costMult, expMult); setGymLocationButtons(costMult, expMult);
break; break;
@@ -793,7 +793,7 @@ function displayLocationContent() {
break; break;
case Locations.Sector12PowerhouseGym: case Locations.Sector12PowerhouseGym:
var costMult = 10, expMult = 7.5; var costMult = 20, expMult = 10;
displayGymLocationContent(costMult); displayGymLocationContent(costMult);
setGymLocationButtons(costMult, expMult); setGymLocationButtons(costMult, expMult);
break; break;
@@ -1045,7 +1045,7 @@ function displayLocationContent() {
break; break;
case Locations.VolhavenMilleniumFitnessGym: case Locations.VolhavenMilleniumFitnessGym:
var costMult = 3, expMult = 2.5; var costMult = 7, expMult = 4;
displayGymLocationContent(costMult); displayGymLocationContent(costMult);
setGymLocationButtons(costMult, expMult); setGymLocationButtons(costMult, expMult);
break; break;
+1
View File
@@ -53,6 +53,7 @@ function prestigeWorkerScripts() {
deleteActiveScriptsItem(workerScripts[i]); deleteActiveScriptsItem(workerScripts[i]);
workerScripts[i].env.stopFlag = true; workerScripts[i].env.stopFlag = true;
} }
updateActiveScriptsItems(); //Force UI to update
workerScripts.length = 0; workerScripts.length = 0;
} }
+1 -1
View File
@@ -59,7 +59,7 @@ function scriptEditorInit() {
} }
var closeButton = createElement("a", { var closeButton = createElement("a", {
class:"a-link-button", display:"inline-block", class:"a-link-button", display:"inline-block",
innerText:"Save & Close (Ctrl + b)", innerText:"Save & Close (Ctrl/Cmd + b)",
clickListener:()=>{ clickListener:()=>{
saveAndCloseScriptEditor(); saveAndCloseScriptEditor();
return false; return false;
-23
View File
@@ -68,29 +68,6 @@ function Server(params={ip:createRandomIp(), hostname:""}) {
this.openPortCount = 0; this.openPortCount = 0;
}; };
/*
//Set the hacking properties of a server
Server.prototype.setHackingParameters = function(requiredHackingSkill, moneyAvailable, hackDifficulty, serverGrowth) {
this.requiredHackingSkill = requiredHackingSkill;
if (isNaN(moneyAvailable)) {
this.moneyAvailable = 1e6;
} else {
this.moneyAvailable = moneyAvailable * BitNodeMultipliers.ServerStartingMoney;
}
this.moneyMax =
this.hackDifficulty = hackDifficulty * BitNodeMultipliers.ServerStartingSecurity;
this.baseDifficulty = hackDifficulty * BitNodeMultipliers.ServerStartingSecurity;
this.minDifficulty = Math.max(1, Math.round(this.hackDifficulty / 3));
this.serverGrowth = serverGrowth;
}
//Set the port properties of a server
//Right now its only the number of open ports needed to PortHack the server.
Server.prototype.setPortProperties = function(numOpenPortsReq) {
this.numOpenPortsRequired = numOpenPortsReq;
}
*/
Server.prototype.setMaxRam = function(ram) { Server.prototype.setMaxRam = function(ram) {
this.maxRam = ram; this.maxRam = ram;
} }
+11 -5
View File
@@ -899,9 +899,10 @@ let Engine = {
Counters: { Counters: {
autoSaveCounter: 300, //Autosave every minute autoSaveCounter: 300, //Autosave every minute
updateSkillLevelsCounter: 10, //Only update skill levels every 2 seconds. Might improve performance updateSkillLevelsCounter: 10, //Only update skill levels every 2 seconds. Might improve performance
updateDisplays: 3, //Update displays such as Active Scripts display and character display updateDisplays: 3,
updateDisplaysMed: 9, updateDisplaysMed: 9,
updateDisplaysLong: 15, updateDisplaysLong: 15,
updateDisplaysSecond:5,
createProgramNotifications: 10, //Checks whether any programs can be created and notifies createProgramNotifications: 10, //Checks whether any programs can be created and notifies
checkFactionInvitations: 100, //Check whether you qualify for any faction invitations checkFactionInvitations: 100, //Check whether you qualify for any faction invitations
passiveFactionGrowth: 600, passiveFactionGrowth: 600,
@@ -939,6 +940,13 @@ let Engine = {
Engine.Counters.updateSkillLevelsCounter = 10; Engine.Counters.updateSkillLevelsCounter = 10;
} }
if (Engine.Counters.updateDisplaysSecond <= 0) {
if (Engine.currentPage === Engine.Page.ActiveScripts) {
updateActiveScriptsItems();
}
Engine.Counters.updateDisplaysSecond = 5;
}
if (Engine.Counters.updateDisplays <= 0) { if (Engine.Counters.updateDisplays <= 0) {
Engine.displayCharacterOverviewInfo(); Engine.displayCharacterOverviewInfo();
if (Engine.currentPage == Engine.Page.CharacterInfo) { if (Engine.currentPage == Engine.Page.CharacterInfo) {
@@ -957,12 +965,10 @@ let Engine = {
} }
if (Engine.Counters.updateDisplaysMed <= 0) { if (Engine.Counters.updateDisplaysMed <= 0) {
if (Engine.currentPage == Engine.Page.ActiveScripts) { if (Engine.currentPage === Engine.Page.Corporation) {
updateActiveScriptsItems();
} else if (Engine.currentPage === Engine.Page.Corporation) {
Player.corporation.updateUIContent(); Player.corporation.updateUIContent();
} }
Engine.Counters.updateDisplaysMed = 6; Engine.Counters.updateDisplaysMed = 9;
} }
if (Engine.Counters.updateDisplaysLong <= 0) { if (Engine.Counters.updateDisplaysLong <= 0) {