Gambit37 wrote:I checked out the mechanics in the editor and have no clue what's going on
The absurd amount of things going on in this dungeon in order to simulate reading from a counter are the cause of the slowness.
Basically:
Three counters keep track of the amount of coins put in. One is there to be able to reset the counter, one is there to vend an item when the correct amount is reached, and the third one is set to the price+1 in order to give change.
Change is given the same way, with a 5-count to give silver coins for change, and then an iterative counter reset (by means of a fireball launcher) to give any copper coins for change amounts < 5.
To keep the mechanisms generic, the shop originally sells you a generic "VENDED_ITEM" item which is then globally swapped for what you actually wanted to buy. This is the reason the chest pops up momentarily. It's to work around a mechanics issue, but it actually looks cool.
