diff --git a/src/Bladeburner/GeneralActions.tsx b/src/Bladeburner/GeneralActions.tsx index 89c1f02e5..62c962eec 100644 --- a/src/Bladeburner/GeneralActions.tsx +++ b/src/Bladeburner/GeneralActions.tsx @@ -3,35 +3,17 @@ import { IMap } from "../types"; export const GeneralActions: IMap = {}; -(function () { - // General Actions - let actionName; - actionName = "Training"; - GeneralActions[actionName] = new Action({ - name: actionName, - }); +let actionNames : Array = [ + "Training", + "Field Analysis", + "Recruitment", + "Diplomacy", + "Hyperbolic Regeneration Chamber", + "Incite Violence" +]; - actionName = "Field Analysis"; +for (let actionName of actionNames){ GeneralActions[actionName] = new Action({ 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, - }); -})(); +} \ No newline at end of file