You know how the game crashes if you attempt to change the direct value of the energy?
Turns out that that address + 8 and that address + 16 can be changed after going out of the app, and trying to change them individually crashes as well.
Example, type 4 bytes
Address: 277A11D59D0 - 17
Address: 277A11D59D8 - 1158338930
Address: 277A11D59E0 - 1158338915
23-2166821487-2166821496
If you copy all these values to the addresses at the same time, the energy will be 18 after the energy naturally replenishes.
Coins work in the same address way, and gems likely do so as well. And they use the same system as well, so you can turn 203-3954874659-3954874856, 203 coins into 203 energy with the corresponding system.
Sorting when on the store should be the most consistent way