Skip to content

Commit

Permalink
Fixed test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterbrandsen authored Mar 20, 2024
1 parent 4a40558 commit 911711c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/data/converter/manage/ownedRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 911711c

Please sign in to comment.