By Eisenherz & SilverstarStream, based on the BSS damage calculator by cant say (@jakecantsay) and Lego.
The calculator includes all BDSP Tower / SwSh Tower / Restricted Sparring / Battle Tree / Battle Maison / Battle Subway / Sinnoh Battle Frontier / Hoenn Battle Frontier sets preloaded and has been updated for SV.
Custom sets can be input within the calculator using the official Pokemon Showdown format.
Nickname (Species) @ Item
Ability: Name
Level: #
EVs: # Stat / # Stat / # Stat
Serious Nature
IVs: # Stat
- Move Name
- Move Name
- Move Name
- Move Name
This damage calculator is committed to accurate and correct calculations. It uses the following resources to verify calculations:
- Gen III-IV: the damage code was taken from a fork of Showdown's calc and verified (Gen III decomp | Gen IV damage formula)
- Gen V-IX: this calculator is a fork of a calculator based on the Gen V damage formula research (the formula explained up through Gen VII: DaWoblefet's Damage Dissertation)
- Gen VIII-IX: additional effects are researched on Smogon (SwSh mechanics research | SV mechanics research)
If there are any errors found while using the calc, please report the issue by either reaching out through the Battle Facilities Discord or by submitting a New Issue.
The site is powered by Jekyll, with linting by nodejs' eslint.
Do NOT Edit anything under the _site folder, it is regenerated whenever you make changes to the other files and edits made there will NOT be saved.
Jekyll uses the Liquid templating language, combined with a YAML Front-Matter to serve pages. This allows us to use templates and {% includes %} tags (see /_layouts/default.html) to avoid repeating content (such as the header used by both index.html and /_pages/privacy.html) with the following in the YAML Front-Matter:
---
layout: default
---
This means that any page with this Front-Matter will use default.html injected with its contents where it says {{ content }}.
Different layouts can be used but they would have to be created separately.
Aside from that, the repo should be fairly simple to navigate.
- Install Ruby (use RubyInstaller if on Windows)
- Double-click
setup.batif on Windows, or view the script's main content for the necessary commands.
The site can be ran locally by double-clicking run.bat.
This will open a page in the default browser that will have a connection error. Wait for several seconds for the site to build (this can be seen from the terminal), then refresh the page.
Please ensure your code passes our tests before submitting your PR!
NOTE: Running the tests launches an instance of Firefox, and Firefox is required to be installed.
As an alternative, Chrome can be used instead (must be installed). In this case, replace Capybara.current_driver = :selenium_headless with Capybara.current_driver = :selenium_chrome_headless.
- Double-click
test.bat. - Fix any errors turned up by the test!
- If appropriate, consider adding a test to capture the changes' behavior.
- Create a pull request for your changes!