mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
Merge pull request #1544 from Snarling/patch-3
Reduce repetitive code sections (bladeburner general actions)
This commit is contained in:
commit
55504d600d
@ -3,35 +3,17 @@ import { IMap } from "../types";
|
|||||||
|
|
||||||
export const GeneralActions: IMap<Action> = {};
|
export const GeneralActions: IMap<Action> = {};
|
||||||
|
|
||||||
(function () {
|
let actionNames : Array<string> = [
|
||||||
// General Actions
|
"Training",
|
||||||
let actionName;
|
"Field Analysis",
|
||||||
actionName = "Training";
|
"Recruitment",
|
||||||
GeneralActions[actionName] = new Action({
|
"Diplomacy",
|
||||||
name: actionName,
|
"Hyperbolic Regeneration Chamber",
|
||||||
});
|
"Incite Violence"
|
||||||
|
];
|
||||||
|
|
||||||
actionName = "Field Analysis";
|
for (let actionName of actionNames){
|
||||||
GeneralActions[actionName] = new Action({
|
GeneralActions[actionName] = new Action({
|
||||||
name: actionName,
|
name: actionName,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
actionName = "Recruitment";
|
|
||||||
GeneralActions[actionName] = new Action({
|
|
||||||
name: actionName,
|
|
||||||
});
|
|
||||||
|
|
||||||
actionName = "Diplomacy";
|
|
||||||
GeneralActions[actionName] = new Action({
|
|
||||||
name: actionName,
|
|
||||||
});
|
|
||||||
|
|
||||||
actionName = "Hyperbolic Regeneration Chamber";
|
|
||||||
GeneralActions[actionName] = new Action({
|
|
||||||
name: actionName,
|
|
||||||
});
|
|
||||||
actionName = "Incite Violence";
|
|
||||||
GeneralActions[actionName] = new Action({
|
|
||||||
name: actionName,
|
|
||||||
});
|
|
||||||
})();
|
|
Loading…
Reference in New Issue
Block a user