Thanks to @isolethisname for coming up with the idea to edit the save file.
After a quick look i found out, that you can do a lot of cool stuff with it and sometimes it gets a bit weird, i guess that is what you mentioned as "spaghetti code".
I used this website to look into the dat.save file:
https://www.saveeditonline.co
You can a lot of stuff like:
- amount of berries
- money
- pokemon level
- glyphs
- pokemon
- tribute level
- and more...
You can also do some funny stuff like give turn a tree into a Ditto with the Transform Ability and it will behave like a Ditto but with Zero Berry cost.
You can also stack Glyphs like courage, but unfortunately the effect does not stack.
The spaghetti part is, that the game give a ID for each card, and everytime you buy or sell cards it will give all cards a new ID wich explains the lag, when you sell cards.
The game still makes a lot of fun, really good base ^^