Mechanics & Formulas
Posted: October 4th, 2016, 2:47 pm
Hello!
I'm writing an application with the purpose of simulating pet battles to obtain statistically percentage of how much a team is able to win against another and to experiment some algorithms which could evolve to find the better team to defeat a specific trainer.
This requires me to have an in-depth knowledge of the mechanics behind battles, which is what I'm asking here. I need to model the battle in my application as similar as possible to the original game to obtain consistent results. So I'd like to use this thread to ask for specific formulas which I haven't found online.
So I'll start with a couple of easy questions
Thanks in advance for now, your help is appreciated!
PS. the application will be open source and free for everyone to contribute, I just need to finish the basic structure
I'm writing an application with the purpose of simulating pet battles to obtain statistically percentage of how much a team is able to win against another and to experiment some algorithms which could evolve to find the better team to defeat a specific trainer.
This requires me to have an in-depth knowledge of the mechanics behind battles, which is what I'm asking here. I need to model the battle in my application as similar as possible to the original game to obtain consistent results. So I'd like to use this thread to ask for specific formulas which I haven't found online.
So I'll start with a couple of easy questions
- Which is the base crit chance of an ability? According to what I've found online it should be 5%, is it correct? Is it influenced by anything (with the exception of abilities which specifically increate the crit chance), eg. level or rarity and if yes is there a specific formula?
- It seems that all abilities follow the formula of BASE_DMG + PET_POWER * SCALE_FACTOR, is it the case? This also applies to abilities that heal the pet or apply damage over time (which probably would consists of two different scale factors for main dmg and periodic dmg). Is there a list of such base damage? I'm using the WoW API to obtain the pet list, I'm able to reverse the base stats of a pet by calculating the regression of the hp/power/speed in level 1-25 of a pet but there's nothing else.
Thanks in advance for now, your help is appreciated!
PS. the application will be open source and free for everyone to contribute, I just need to finish the basic structure