Skip to content

Commit

Permalink
[#249] Cannot upgrade piece twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Monkey-bored committed Apr 7, 2024
1 parent 952a872 commit ba54eaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/development/ui/UpgradeUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function showUpgradeablePiecesElements(
upgradeElement.innerHTML = upgradeablePiece.resource;
upgradeElement.addEventListener('click', () => {
upgradePiece(piece, upgradeablePiece);
showUpgradeablePiecesElements(upgradeablePiece, upgradeablePiece.upgrades);
});

const upgradePriceElement = document.createElement('p');
Expand Down

0 comments on commit ba54eaf

Please sign in to comment.