Behavior replication for the common things and decompilation for formulas and another non-obvious mechanic details? Or maybe initial decompilation and then a lot of creative work?
I'm interesting, because I hope to make something similar with another game and just wander about how such things did.