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