From 3cc7eb8cfedc2b64923223bfee9496502cd5cb80 Mon Sep 17 00:00:00 2001 From: Pieter Date: Wed, 20 Mar 2024 10:38:09 +0000 Subject: [PATCH] RCL/GCL per, use min --- src/data/converter/manage/ownedRoom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/converter/manage/ownedRoom.js b/src/data/converter/manage/ownedRoom.js index 0fbd2a8..ff14e6d 100644 --- a/src/data/converter/manage/ownedRoom.js +++ b/src/data/converter/manage/ownedRoom.js @@ -335,11 +335,11 @@ export default async function handleObjects(data, opts) { } actions.push(ActionProcessor.CreateAction('controller.gclPerTick', - intentsCategories.outcome.upgradeController.effect, + Math.min(intentsCategories.outcome.upgradeController.effect, controller._upgraded || 0), ActionProcessor.ActionType.Divide100)) if (controller && controller.level < 8) { actions.push(ActionProcessor.CreateAction('controller.rclPerTick', - intentsCategories.outcome.upgradeController.effect, + Math.min(intentsCategories.outcome.upgradeController.effect, controller._upgraded || 0), ActionProcessor.ActionType.Divide100)) } if (controller) {