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
+8 -1
View File
@@ -300,6 +300,10 @@ PlayerObject.prototype.prestigeAugmentation = function() {
this.hacknetNodes.length = 0;
this.totalHacknetNodeProduction = 0;
//Re-calculate skills and reset HP
this.updateSkillLevels();
this.hp = this.max_hp;
}
PlayerObject.prototype.prestigeSourceFile = function() {
@@ -393,6 +397,9 @@ PlayerObject.prototype.prestigeSourceFile = function() {
this.playtimeSinceLastAug = 0;
this.playtimeSinceLastBitnode = 0;
this.scriptProdSinceLastAug = 0;
this.updateSkillLevels();
this.hp = this.max_hp;
}
PlayerObject.prototype.getCurrentServer = function() {
@@ -2357,7 +2364,7 @@ PlayerObject.prototype.queueAugmentation = function(name) {
return;
}
}
this.firstAugPurchased = true;
this.queuedAugmentations.push(new PlayerOwnedAugmentation(name));
}