zuelong / save-the-spire

A save editor for the game Slay the Spire
16 stars 13 forks source link

Refactor #18

Closed ntower closed 6 years ago

ntower commented 6 years ago

Hi, i sent you a message on reddit that i might make this merge request, but i didn't get a response before i made it. I did some refactoring of your project to use React in a more standard way. Some of the things i did are on your issues list already, and some are recommendations of mine.

Here's what i changed, starting with the stuff in the issue backlog:

Other things i changed:

I tested quite a bit to confirm that my new code behaves the same as the old one, including comparing the output from your version and mine to look for differences, and also including loading the output in slay the spire. I did identify the following differences, all quite minor

zuelong commented 6 years ago

I'm going to go ahead and merge/deploy this.

Thanks so much for the advice and the help. It definitely gave me a lot more insight on the way react is supposed to work.

I'm really not on reddit that much, so I didnt see your message until you dropped this PR. Sorry about that!

If you have any changes in the future, just drop a PR and i'll be sure to merge them as soon as possible. Assuming the code works XD