From 911711cd53d4303ed7be3e5f2bc65551f1ee644f Mon Sep 17 00:00:00 2001 From: Pieter Date: Wed, 20 Mar 2024 11:25:53 +0000 Subject: [PATCH] Fixed test issue --- src/data/converter/manage/ownedRoom.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/data/converter/manage/ownedRoom.js b/src/data/converter/manage/ownedRoom.js index 0a37fa7..26b357d 100644 --- a/src/data/converter/manage/ownedRoom.js +++ b/src/data/converter/manage/ownedRoom.js @@ -334,20 +334,18 @@ export default async function handleObjects(data, opts) { } } - actions.push(ActionProcessor.CreateAction('controller.gclPerTick', - Math.max(intentsCategories.outcome.upgradeController.effect, controller._upgraded || 0), - ActionProcessor.ActionType.Divide100)) - if (controller && controller.level < 8) { - actions.push(ActionProcessor.CreateAction('controller.rclPerTick', - Math.max(intentsCategories.outcome.upgradeController.effect, controller._upgraded || 0), - ActionProcessor.ActionType.Divide100)) - } if (controller) { actions.push(ActionProcessor.CreateAction('controller.gclPerTick_upgraded', controller._upgraded || 0, ActionProcessor.ActionType.Divide100)) + actions.push(ActionProcessor.CreateAction('controller.gclPerTick', + Math.max(intentsCategories.outcome.upgradeController.effect, controller._upgraded || 0), + ActionProcessor.ActionType.Divide100)) if (controller.level < 8) { actions.push(ActionProcessor.CreateAction('controller.rclPerTick_upgraded', controller._upgraded || 0, ActionProcessor.ActionType.Divide100)) + actions.push(ActionProcessor.CreateAction('controller.rclPerTick', + Math.max(intentsCategories.outcome.upgradeController.effect, controller._upgraded || 0), + ActionProcessor.ActionType.Divide100)) } }