kanethemediocre / BlingHustle

Open sauce 2d space adventure
GNU General Public License v3.0
0 stars 0 forks source link

Rework ship upgrades #19

Closed kanethemediocre closed 3 years ago

kanethemediocre commented 3 years ago

Upgrade class is sort of barely used, everything except description is handled within the shop code. Upgrades may or may not work in current paradigm, and the cost doesn't tier-scale consistently across identical upgrade entries (ie, shop A may have an armor upgrade option, and shop B may also have an armor upgrade option--upgrading at shop A will not increase the cost of a 2nd upgrade at shop B.

kanethemediocre commented 3 years ago

Code for upgrades moved to upgrade class, under "apply()" function--prices update, and ship stats do too. The shopitem class now calls the "apply()" function when it's type is "upgrade". It all seems to work.