mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-10 23:37:33 +01:00
fix incite violence
This commit is contained in:
parent
8819042c0f
commit
89fa79c4de
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1172,7 +1172,7 @@ export class Bladeburner implements IBladeburner {
|
|||||||
return GeneralActions["Diplomacy"];
|
return GeneralActions["Diplomacy"];
|
||||||
case ActionTypes["Hyperbolic Regeneration Chamber"]:
|
case ActionTypes["Hyperbolic Regeneration Chamber"]:
|
||||||
return GeneralActions["Hyperbolic Regeneration Chamber"];
|
return GeneralActions["Hyperbolic Regeneration Chamber"];
|
||||||
case ActionTypes["stir trouble"]:
|
case ActionTypes["Incite Violence"]:
|
||||||
return GeneralActions["Incite Violence"];
|
return GeneralActions["Incite Violence"];
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
@ -1511,6 +1511,10 @@ export class Bladeburner implements IBladeburner {
|
|||||||
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 * 3 * growthF()) / BladeburnerConstants.ActionCountGrowthPeriod;
|
this.operations[operation].count += (60 * 3 * growthF()) / BladeburnerConstants.ActionCountGrowthPeriod;
|
||||||
}
|
}
|
||||||
|
if (this.logging.general) {
|
||||||
|
this.log(`Incited violence in the synthoid communities.`);
|
||||||
|
}
|
||||||
|
this.startAction(player, this.action);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -12,6 +12,7 @@ export const ActionTypes: {
|
|||||||
"Field Analysis": number;
|
"Field Analysis": number;
|
||||||
Diplomacy: number;
|
Diplomacy: number;
|
||||||
"Hyperbolic Regeneration Chamber": number;
|
"Hyperbolic Regeneration Chamber": number;
|
||||||
|
"Incite Violence": number;
|
||||||
} = {
|
} = {
|
||||||
Idle: 1,
|
Idle: 1,
|
||||||
Contract: 2,
|
Contract: 2,
|
||||||
@ -24,4 +25,5 @@ export const ActionTypes: {
|
|||||||
"Field Analysis": 7,
|
"Field Analysis": 7,
|
||||||
Diplomacy: 8,
|
Diplomacy: 8,
|
||||||
"Hyperbolic Regeneration Chamber": 9,
|
"Hyperbolic Regeneration Chamber": 9,
|
||||||
|
"Incite Violence": 10,
|
||||||
};
|
};
|
||||||
|
@ -8,6 +8,8 @@ function makeScriptBlob(code: string): Blob {
|
|||||||
return new Blob([code], { type: "text/javascript" });
|
return new Blob([code], { type: "text/javascript" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function compile(script: Script, scripts: Script[]): void {}
|
||||||
|
|
||||||
// Begin executing a user JS script, and return a promise that resolves
|
// Begin executing a user JS script, and return a promise that resolves
|
||||||
// or rejects when the script finishes.
|
// or rejects when the script finishes.
|
||||||
// - script is a script to execute (see Script.js). We depend only on .filename and .code.
|
// - script is a script to execute (see Script.js). We depend only on .filename and .code.
|
||||||
|
Loading…
Reference in New Issue
Block a user