Bug fixes

This commit is contained in:
Daniel Xie 2017-05-05 13:13:31 -05:00
parent acc3b8cf89
commit 9f7d6d7bba
3 changed files with 6 additions and 4 deletions

@ -757,7 +757,7 @@ applyAugmentation = function(aug, faction) {
Player.defense_exp_mult *= 1.05;
Player.dexterity_exp_mult *= 1.05;
Player.agility_exp_mult *= 1.05;
this.charisma_exp_mult *= 1.05;
Player.charisma_exp_mult *= 1.05;
break;
case "Neurotrainer II": //Medium level
Player.hacking_exp_mult *= 1.1;

@ -24,9 +24,7 @@ function displayCreateProgramContent() {
relaySmtpALink.style.display = "none";
httpWormALink.style.display = "none";
sqlInjectALink.style.display = "none";
//TODO These addEventListeners should only happen once so I guess just put them in Engine.init()
//PortHack.exe (in case you delete it lol)
if (Player.getHomeComputer().programs.indexOf(Programs.NukeProgram) == -1) {
portHackALink.style.display = "block";

@ -438,6 +438,10 @@ var Engine = {
displayAugmentationsContent: function() {
var augmentationsList = document.getElementById("augmentations-list");
while (augmentationsList.firstChild) {
augmentationsList.removeChild(augmentationsList.firstChild);
}
for (var i = 0; i < Player.augmentations.length; ++i) {
var augName = Player.augmentations[i];
var aug = Augmentations[augName];