damage-calc
damage-calc copied to clipboard
Feature Request: HTTP GET Params
It would be really handy if the HTML endpoints supported HTTP GET params in the URL.
This would allow people to share specific calc results, or link to specific calc pages programatically.
For example, running /calc on a Showdown battle where you have a Scyther at +2 atk and the opponent has a Klawf at 88% HP could trivially generate a link to (for example) https://calc.pokemonshowdown.com/randoms.html?attacker_pokemon=scyther&defender_pokemon=klawf&attacker_atk=%2B2&defender_hp_percent=88, rather than just https://calc.pokemonshowdown.com/randoms.html
#587