Thread: Programming Mass Damage Calculators
View Single Post
Old Sep 9th, 2011, 2:36:32 AM   #34
Honko
pronounced "Honko"
is a Tiering Contributoris a Contributor to Smogon
 
Honko's Avatar
 
Join Date: Dec 2009
Posts: 1,042
Default

Quote:
Originally Posted by Fat ssbbm View Post
It says that Specs Heatran and Chandelure KO +1 CM Reuniclus with Overheat while they don't /:
I think what happens is Overheat ignores boosts for some weird reason; the calcs seem to be correct for Kyurem's Specs DM.
Good catch. Looks like the calculator is assuming Flash Fire is activated. I'll fix that soon.

Quote:
Originally Posted by Fat whitefag View Post
Not stricter, stupid own standarts that are supported only by Microsoft.

I suggest a possibility to add own sets for opponents. There are, well, sets that aren't on smogon database. I think you can also use statistics for that.

And I think you can merge getUserOptions() and getTargets() into one function (or an object so you can generate json with whatever generates that code) to save some traffic and avoid writing same code twice.
Thanks for the tips, I will look into json. As for adding custom sets, I'm hesitant to do that, mostly for simplicity. In the long run, Smogon should eventually have most of the noteworthy sets. If there's a really popular set that Smogon doesn't have for some reason, I can always add it manually.
__________________
Honko is online now   Reply With Quote