Post-merge code formatting for code consistency.
Minor refactoring for shop buttons. Code cleanup.
Minor code tweaks and optimization for shopping functionalities and unit reference for assist/attack.