More work on Hacking Missions

This commit is contained in:
danielyxie
2017-09-25 07:50:19 -05:00
parent 4a0f8c4666
commit 5e7d72d901
8 changed files with 1675 additions and 938 deletions
+3 -1
View File
@@ -1224,7 +1224,9 @@ PlayerObject.prototype.finishCreateProgramWork = function(cancelled, sing=false)
this.getHomeComputer().programs.push(incompleteName);
}
this.gainIntelligenceExp(this.createProgramReqLvl / CONSTANTS.IntelligenceProgramBaseExpGain);
if (!cancelled) {
this.gainIntelligenceExp(this.createProgramReqLvl / CONSTANTS.IntelligenceProgramBaseExpGain);
}
var mainMenu = document.getElementById("mainmenu-container");
mainMenu.style.visibility = "visible";