fix blade time

This commit is contained in:
Olivier Gagnon 2021-11-03 13:43:03 -04:00
parent d82f3e7ad7
commit 2578ea51c3
5 changed files with 7 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -179,7 +179,7 @@ export class Action implements IAction {
baseTime = Math.max(1, (baseTime * skillFac) / statFac); baseTime = Math.max(1, (baseTime * skillFac) / statFac);
return Math.ceil(baseTime * this.getActionTimePenalty()) * 1000; return Math.ceil(baseTime * this.getActionTimePenalty());
} }
// For actions that have teams. To be implemented by subtypes. // For actions that have teams. To be implemented by subtypes.

@ -1007,7 +1007,7 @@ export class Bladeburner implements IBladeburner {
getRecruitmentTime(player: IPlayer): number { getRecruitmentTime(player: IPlayer): number {
const effCharisma = player.charisma * this.skillMultipliers.effCha; const effCharisma = player.charisma * this.skillMultipliers.effCha;
const charismaFactor = Math.pow(effCharisma, 0.81) + effCharisma / 90; const charismaFactor = Math.pow(effCharisma, 0.81) + effCharisma / 90;
return Math.max(10, Math.round(BladeburnerConstants.BaseRecruitmentTimeNeeded - charismaFactor)) * 1000; return Math.max(10, Math.round(BladeburnerConstants.BaseRecruitmentTimeNeeded - charismaFactor));
} }
resetSkillMultipliers(): void { resetSkillMultipliers(): void {
@ -2104,13 +2104,13 @@ export class Bladeburner implements IBladeburner {
case ActionTypes["Operation"]: case ActionTypes["Operation"]:
case ActionTypes["BlackOp"]: case ActionTypes["BlackOp"]:
case ActionTypes["BlackOperation"]: case ActionTypes["BlackOperation"]:
return actionObj.getActionTime(this); return actionObj.getActionTime(this) * 1000;
case ActionTypes["Training"]: case ActionTypes["Training"]:
case ActionTypes["Field Analysis"]: case ActionTypes["Field Analysis"]:
case ActionTypes["FieldAnalysis"]: case ActionTypes["FieldAnalysis"]:
return 30000; return 30000;
case ActionTypes["Recruitment"]: case ActionTypes["Recruitment"]:
return this.getRecruitmentTime(player); return this.getRecruitmentTime(player) * 1000;
case ActionTypes["Diplomacy"]: case ActionTypes["Diplomacy"]:
case ActionTypes["Hyperbolic Regeneration Chamber"]: case ActionTypes["Hyperbolic Regeneration Chamber"]:
case ActionTypes["Incite Violence"]: case ActionTypes["Incite Violence"]: