These posts actually entertain me. The one with calculating level each time is such a barbaric method that I wonder how it is like that in the first place. And Yes, arrays are the way to go if you know the index. Beats searching a string. Also, regexes are unreadable most of the times if they are complex . Trust me. I have had cases where I looked at regexes I myself created and wondered what the hell it does lol. Keep doing the good things you are and here's to getting a better game.
PS: I always wondered(not when I was a kid obviously) how the Pokemon code worked and how all the different abilities, moves etc fit together. Well, now I know after reading all the dev posts. I assumed they were stored as jsons haha.