reduce time and effect of incite violence

This commit is contained in:
Olivier Gagnon 2021-10-14 23:13:56 -04:00
parent e6a4456d81
commit 8819042c0f
4 changed files with 8 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -184,9 +184,8 @@ export class Bladeburner implements IBladeburner {
break; break;
case ActionTypes["Diplomacy"]: case ActionTypes["Diplomacy"]:
case ActionTypes["Hyperbolic Regeneration Chamber"]: case ActionTypes["Hyperbolic Regeneration Chamber"]:
this.actionTimeToComplete = 60;
case ActionTypes["Incite Violence"]: case ActionTypes["Incite Violence"]:
this.actionTimeToComplete = 600; this.actionTimeToComplete = 60;
break; break;
default: default:
throw new Error("Invalid Action Type in startAction(Bladeburner,player, ): " + actionId.type); throw new Error("Invalid Action Type in startAction(Bladeburner,player, ): " + actionId.type);
@ -1505,12 +1504,12 @@ export class Bladeburner implements IBladeburner {
for (const contract of Object.keys(this.contracts)) { for (const contract of Object.keys(this.contracts)) {
const growthF = Growths[contract]; const growthF = Growths[contract];
if (!growthF) throw new Error("trying to generate count for action that doesn't exist? " + contract); if (!growthF) throw new Error("trying to generate count for action that doesn't exist? " + contract);
this.contracts[contract].count += (60 * 30 * growthF()) / BladeburnerConstants.ActionCountGrowthPeriod; this.contracts[contract].count += (60 * 3 * growthF()) / BladeburnerConstants.ActionCountGrowthPeriod;
} }
for (const operation of Object.keys(this.operations)) { for (const operation of Object.keys(this.operations)) {
const growthF = Growths[operation]; const growthF = Growths[operation];
if (!growthF) throw new Error("trying to generate count for action that doesn't exist? " + operation); if (!growthF) throw new Error("trying to generate count for action that doesn't exist? " + operation);
this.operations[operation].count += (60 * 30 * growthF()) / BladeburnerConstants.ActionCountGrowthPeriod; this.operations[operation].count += (60 * 3 * growthF()) / BladeburnerConstants.ActionCountGrowthPeriod;
} }
break; break;
} }
@ -2106,9 +2105,8 @@ export class Bladeburner implements IBladeburner {
return this.getRecruitmentTime(player); return this.getRecruitmentTime(player);
case ActionTypes["Diplomacy"]: case ActionTypes["Diplomacy"]:
case ActionTypes["Hyperbolic Regeneration Chamber"]: case ActionTypes["Hyperbolic Regeneration Chamber"]:
return 60;
case ActionTypes["Incite Violence"]: case ActionTypes["Incite Violence"]:
return 600; return 60;
default: default:
workerScript.log("bladeburner.getActionTime", errorLogText); workerScript.log("bladeburner.getActionTime", errorLogText);
return -1; return -1;

@ -37,9 +37,8 @@ export function GeneralActionElem(props: IProps): React.ReactElement {
return 30; return 30;
case "Diplomacy": case "Diplomacy":
case "Hyperbolic Regeneration Chamber": case "Hyperbolic Regeneration Chamber":
return 60;
case "Incite Violence": case "Incite Violence":
return 600; return 60;
case "Recruitment": case "Recruitment":
return props.bladeburner.getRecruitmentTime(props.player); return props.bladeburner.getRecruitmentTime(props.player);
} }