Skip to content

Commit

Permalink
Re-added _upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterbrandsen authored Mar 20, 2024
1 parent 4134e24 commit 0d693a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/data/converter/manage/ownedRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ export default async function handleObjects(data, opts) {

// #region Controller
if (controller) {
actions.push(
ActionProcessor.CreateAction(
`controller.upgrader`,
controller._upgraded,
ActionProcessor.ActionType.FirstTickOnly
)
);
actions.push(
ActionProcessor.CreateAction(
`controller.level`,
Expand Down Expand Up @@ -342,6 +349,14 @@ export default async function handleObjects(data, opts) {
intentsCategories.outcome.upgradeController.effect,
ActionProcessor.ActionType.Divide100))
}
if (controller) {
actions.push(ActionProcessor.CreateAction('controller.gclPerTick_upgraded', controller._upgraded || 0,
ActionProcessor.ActionType.Divide100))
if (controller.level < 8) {
actions.push(ActionProcessor.CreateAction('controller.rclPerTick_upgraded', controller._upgraded || 0,
ActionProcessor.ActionType.Divide100))
}
}

const intentsCategoriesKeys = Object.keys(intentsCategories);
intentsCategoriesKeys.forEach((category) => {
Expand Down

0 comments on commit 0d693a2

Please sign in to comment.