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