Skip to content

Commit

Permalink
fix upgrade calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian committed Oct 20, 2023
1 parent dcc5e53 commit fc4d40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cookieclickermanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function getUpgradeCps(upgrade) {
return Game.cookiesPs * extractPercent(upgrade.desc);
}
if (upgrade.buildingTie) {
return getProductCps(upgrade.buildingTie);
return getProductCps(upgrade.buildingTie) * upgrade.buildingTie.amount;
}
return 0;
}
Expand Down

0 comments on commit fc4d40b

Please sign in to comment.