mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
Increased cost of university classes/Gym. You can now see the effects of an augmentation before unlocking it. Slightly increased cost of purchasing Hacknet Node upgrades
This commit is contained in:
parent
b695b19058
commit
8338582ef7
@ -162,7 +162,7 @@
|
||||
}
|
||||
|
||||
#hacknet-nodes-purchase-button {
|
||||
display: block;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#hacknet-nodes-money-multipliers-div {
|
||||
@ -234,7 +234,7 @@
|
||||
color: #FFFFFF;
|
||||
padding: 4px;
|
||||
border: 1px solid #333333;
|
||||
width: 50%;
|
||||
/*width: 30%;*/
|
||||
}
|
||||
|
||||
.create-program-a-link-button-inactive {
|
||||
|
@ -92,7 +92,7 @@ tr:focus {
|
||||
padding: 5px;
|
||||
margin: 5px;
|
||||
border: 1px solid #333333;
|
||||
width: 50%;
|
||||
/*width: 30%;*/
|
||||
}
|
||||
|
||||
.a-link-button:hover {
|
||||
@ -112,7 +112,7 @@ tr:focus {
|
||||
border-left: 1px solid #333333;
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
width: 50%;
|
||||
/*width: 50%;*/
|
||||
}
|
||||
|
||||
|
||||
@ -156,9 +156,10 @@ tr:focus {
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 4px;
|
||||
left: 101%;
|
||||
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.tooltip:hover .tooltiptext {
|
||||
|
@ -181,6 +181,7 @@
|
||||
in order to increase its computing power and thereby increase the profit you earn from it.
|
||||
</p>
|
||||
<a href="#" id="hacknet-nodes-purchase-button" class="a-link-button"> Purchase Hacknet Node </a>
|
||||
<br>
|
||||
<div id="hacknet-nodes-money-multipliers-div">"
|
||||
<p id="hacknet-nodes-money"> </p>
|
||||
<span id="hacknet-nodes-multipliers">
|
||||
|
@ -21,8 +21,8 @@ CONSTANTS = {
|
||||
HacknetNodeMoneyGainPerLevel: 1.25,
|
||||
HacknetNodePurchaseNextMult: 1.33, //Multiplier when purchasing an additional hacknet node
|
||||
HacknetNodeUpgradeLevelMult: 1.04, //Multiplier for cost when upgrading level
|
||||
HacknetNodeUpgradeRamMult: 1.21, //Multiplier for cost when upgrading RAM
|
||||
HacknetNodeUpgradeCoreMult: 1.41, //Multiplier for cost when buying another core
|
||||
HacknetNodeUpgradeRamMult: 1.22, //Multiplier for cost when upgrading RAM
|
||||
HacknetNodeUpgradeCoreMult: 1.42, //Multiplier for cost when buying another core
|
||||
|
||||
HacknetNodeMaxLevel: 200,
|
||||
HacknetNodeMaxRam: 64,
|
||||
@ -110,12 +110,12 @@ CONSTANTS = {
|
||||
ClassGymDexterity: "training your dexterity at a gym",
|
||||
ClassGymAgility: "training your agility at a gym",
|
||||
|
||||
ClassDataStructuresBaseCost: 1,
|
||||
ClassNetworksBaseCost: 5,
|
||||
ClassAlgorithmsBaseCost: 20,
|
||||
ClassManagementBaseCost: 10,
|
||||
ClassLeadershipBaseCost: 20,
|
||||
ClassGymBaseCost: 15,
|
||||
ClassDataStructuresBaseCost: 2,
|
||||
ClassNetworksBaseCost: 10,
|
||||
ClassAlgorithmsBaseCost: 40,
|
||||
ClassManagementBaseCost: 20,
|
||||
ClassLeadershipBaseCost: 40,
|
||||
ClassGymBaseCost: 30,
|
||||
|
||||
CrimeShoplift: "shoplift",
|
||||
CrimeMug: "mug someone",
|
||||
|
@ -27,37 +27,37 @@ function displayCreateProgramContent() {
|
||||
|
||||
//NUKE.exe (in case you delete it lol)
|
||||
if (Player.getHomeComputer().programs.indexOf(Programs.NukeProgram) == -1) {
|
||||
nukeALink.style.display = "block";
|
||||
nukeALink.style.display = "inline-block";
|
||||
}
|
||||
|
||||
//BruteSSH
|
||||
if (Player.getHomeComputer().programs.indexOf(Programs.BruteSSHProgram) == -1 &&
|
||||
Player.hacking_skill >= 50) {
|
||||
bruteSshALink.style.display = "block";
|
||||
bruteSshALink.style.display = "inline-block";
|
||||
}
|
||||
|
||||
//FTPCrack
|
||||
if (Player.getHomeComputer().programs.indexOf(Programs.FTPCrackProgram) == -1 &&
|
||||
Player.hacking_skill >= 100) {
|
||||
ftpCrackALink.style.display = "block";
|
||||
ftpCrackALink.style.display = "inline-block";
|
||||
}
|
||||
|
||||
//relaySMTP
|
||||
if (Player.getHomeComputer().programs.indexOf(Programs.RelaySMTPProgram) == -1 &&
|
||||
Player.hacking_skill >= 250) {
|
||||
relaySmtpALink.style.display = "block";
|
||||
relaySmtpALink.style.display = "inline-block";
|
||||
}
|
||||
|
||||
//HTTPWorm
|
||||
if (Player.getHomeComputer().programs.indexOf(Programs.HTTPWormProgram) == -1 &&
|
||||
Player.hacking_skill >= 500) {
|
||||
httpWormALink.style.display = "block";
|
||||
httpWormALink.style.display = "inline-block";
|
||||
}
|
||||
|
||||
//SQLInject
|
||||
if (Player.getHomeComputer().programs.indexOf(Programs.SQLInjectProgram) == -1 &&
|
||||
Player.hacking_skill >= 750) {
|
||||
sqlInjectALink.style.display = "block";
|
||||
sqlInjectALink.style.display = "inline-block";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -790,18 +790,19 @@ displayFactionAugmentations = function(factionName) {
|
||||
var aug = Augmentations[faction.augmentations[i]];
|
||||
var item = document.createElement("li");
|
||||
var span = document.createElement("span");
|
||||
var aDiv = document.createElement("div");
|
||||
var aElem = document.createElement("a");
|
||||
var pElem = document.createElement("p");
|
||||
aElem.setAttribute("href", "#");
|
||||
var req = aug.baseRepRequirement * faction.augmentationRepRequirementMult;
|
||||
if (aug.name != AugmentationNames.NeuroFluxGovernor && aug.owned) {
|
||||
aElem.setAttribute("class", "a-link-button-inactive tooltip");
|
||||
aElem.setAttribute("class", "a-link-button-inactive");
|
||||
pElem.innerHTML = "ALREADY OWNED";
|
||||
} else if (faction.playerReputation >= req) {
|
||||
aElem.setAttribute("class", "a-link-button tooltip");
|
||||
aElem.setAttribute("class", "a-link-button");
|
||||
pElem.innerHTML = "UNLOCKED - $" + formatNumber(aug.baseCost * faction.augmentationPriceMult, 2);
|
||||
} else {
|
||||
aElem.setAttribute("class", "a-link-button-inactive tooltip");
|
||||
aElem.setAttribute("class", "a-link-button-inactive");
|
||||
pElem.innerHTML = "LOCKED (Requires " + formatNumber(req, 4) + " faction reputation)";
|
||||
pElem.style.color = "red";
|
||||
}
|
||||
@ -813,13 +814,16 @@ displayFactionAugmentations = function(factionName) {
|
||||
}
|
||||
span.style.display = "inline-block"
|
||||
|
||||
aElem.innerHTML += '<span class="tooltiptext">' + aug.info + " </span>";
|
||||
//The div will have the tooltip.
|
||||
aDiv.setAttribute("class", "tooltip");
|
||||
aDiv.innerHTML = '<span class="tooltiptext">' + aug.info + " </span>";
|
||||
aDiv.appendChild(aElem);
|
||||
|
||||
aElem.addEventListener("click", function() {
|
||||
purchaseAugmentationBoxCreate(aug, faction);
|
||||
});
|
||||
|
||||
span.appendChild(aElem);
|
||||
span.appendChild(aDiv);
|
||||
span.appendChild(pElem);
|
||||
|
||||
item.appendChild(span);
|
||||
|
Loading…
Reference in New Issue
Block a user