Infiltration can no longer be done programmatically. HP is reset when prestiging

This commit is contained in:
danielyxie
2018-07-07 19:16:58 -05:00
parent f33bc59768
commit fde2b8cbc1
4 changed files with 89 additions and 35 deletions
+4 -2
View File
@@ -81,7 +81,8 @@ function infiltrationBoxCreate(inst) {
var sellButton = clearEventListeners("infiltration-box-sell");
setTimeout(function() {
sellButton.addEventListener("click", function() {
sellButton.addEventListener("click", function(e) {
if (!e.isTrusted) {return false;}
Player.gainMoney(moneyValue);
dialogBoxCreate("You sold the classified information you stole from " + inst.companyName +
" for $" + moneyValue + " on the black market!<br><br>" +
@@ -99,7 +100,8 @@ function infiltrationBoxCreate(inst) {
var factionButton = clearEventListeners("infiltration-box-faction");
setTimeout(function() {
factionButton.addEventListener("click", function() {
factionButton.addEventListener("click", function(e) {
if (!e.isTrusted) {return false;}
var facName = selector.options[selector.selectedIndex].value;
lastFac = facName;
var faction = Factions[facName];