Auto-translated
Yes. The bug is indeed unpleasant. I didn't notice it right away.
Here is the fixed version.
https://yadi.sk/d/wHCTAs-DPsBAyg
Added after 4 minutes
Now it works like this.
On the second level (i.e., Ordinary grades), grades can be changed between each other.
Provided that a third-level building is constructed, a second-level grade can either be converted into one of the third-level grades or into another second-level grade.
Third-level grades can simply be regraded among themselves.
It is impossible to roll back a third level to a second level.
That being said, there is one bug. But I don't think it's critical. Regardless of the building level, when converting a second-level grade into another second-level grade, money is not deducted from the player.
Here is the fixed version.
https://yadi.sk/d/wHCTAs-DPsBAyg
Added after 4 minutes
Now it works like this.
On the second level (i.e., Ordinary grades), grades can be changed between each other.
Provided that a third-level building is constructed, a second-level grade can either be converted into one of the third-level grades or into another second-level grade.
Third-level grades can simply be regraded among themselves.
It is impossible to roll back a third level to a second level.
That being said, there is one bug. But I don't think it's critical. Regardless of the building level, when converting a second-level grade into another second-level grade, money is not deducted from the player.