Merge pull request #4093 from coderanger/sleeve-heal

SLEEVES: FIX #3819 Allow using the regeneration chamber with sleeves to heal them.
This commit is contained in:
hydroflame 2022-09-23 00:33:16 -03:00 committed by GitHub
commit 34534ac282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

@ -159,6 +159,7 @@ export class Sleeve extends Person {
this.exp.agility = 0;
this.exp.charisma = 0;
this.updateStatLevels();
this.hp.current = this.hp.max;
// Reset task-related stuff
this.stopWork(p);
@ -440,6 +441,9 @@ export class Sleeve extends Person {
case "Diplomacy":
this.startWork(p, new SleeveBladeburnerWork({ type: "General", name: "Diplomacy" }));
return true;
case "Hyperbolic Regeneration Chamber":
this.startWork(p, new SleeveBladeburnerWork({ type: "General", name: "Hyperbolic Regeneration Chamber" }));
return true;
case "Infiltrate synthoids":
this.startWork(p, new SleeveInfiltrateWork());
return true;

@ -35,6 +35,7 @@ const bladeburnerSelectorOptions: string[] = [
"Field analysis",
"Recruitment",
"Diplomacy",
"Hyperbolic Regeneration Chamber",
"Infiltrate synthoids",
"Support main sleeve",
"Take on contracts",
@ -285,6 +286,8 @@ function getABC(sleeve: Sleeve): [string, string, string] {
return ["Perform Bladeburner Actions", "Diplomacy", "------"];
case "Recruitment":
return ["Perform Bladeburner Actions", "Recruitment", "------"];
case "Hyperbolic Regeneration Chamber":
return ["Perform Bladeburner Actions", "Hyperbolic Regeneration Chamber", "------"];
}
}