KOBUGE-Games / project-kumquat

Repo for Kobuge's 1st hackathon game (a tower defense) - name subject to imminent change
GNU General Public License v3.0
48 stars 9 forks source link

Upgrade button costs as much as buying tier2 or tier3 from scratch #25

Closed akien-mga closed 8 years ago

akien-mga commented 8 years ago

The upgrade button should only charge the different between the existing tower and the tower of tier+1. Should be relatively simple to do but I haven't understood yet how upgrading towers work :D

akien-mga commented 8 years ago

Fixed by fed0955.

bojidar-bg commented 8 years ago

Heh, my idea was that tier price for tier > 1 is equal to the price for upgrade from tier - 1...

akien-mga commented 8 years ago

Heh, my idea was that tier price for tier > 1 is equal to the price for upgrade from tier - 1...

But that's not what we want, since there is now a way to place tier2 directly without paying tier1 first. So we can't have the tier2 button cost the price of tier2, but upgrading a tier1 costing the price of tier1 (existing) and tier2 (upgrade) :)

ObaniGemini commented 8 years ago

I think upgrade button should cost a little bit more than tierX. But that's just optimization and we don't need it now ^^