Skip to content

Commit

Permalink
RCL/GCL per, use min
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterbrandsen authored Mar 20, 2024
1 parent aa87df4 commit 3cc7eb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/converter/manage/ownedRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3cc7eb8

Please sign in to comment.