Many of the shopping options also give an option to cancel them, for example after buying +50 hp you get an extra option to cancel that purchase. This is implemented by having a separate cancel option, and separate code for handling it, for each of these options.
On the code level, the cancel doesn't cancel, it applies an opposite change. So the "cancel +50hp" option is really "buy -50hp, for -90 gold". This means a lot of extra code.
Issue #36 is to redesign the UI to have a single "cancel" option at the bottom of each subsection. The issue in this report would be to have cancelling roll the unit back to before any changes were applied.
Many of the shopping options also give an option to cancel them, for example after buying +50 hp you get an extra option to cancel that purchase. This is implemented by having a separate cancel option, and separate code for handling it, for each of these options.
On the code level, the cancel doesn't cancel, it applies an opposite change. So the "cancel +50hp" option is really "buy -50hp, for -90 gold". This means a lot of extra code.
Issue #36 is to redesign the UI to have a single "cancel" option at the bottom of each subsection. The issue in this report would be to have cancelling roll the unit back to before any changes were applied.