1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-12-13 08:10:05 +00:00

Added Smogon tiering system, made team invisible clause, sorted all pokemon

This commit is contained in:
Deukhoofd
2016-02-04 23:30:39 +01:00
parent d7316d5799
commit 398d23a0d6
23 changed files with 6735 additions and 5135 deletions

View File

@@ -5,13 +5,11 @@
.team_meta_buttons
.dropdown.change-format-dropdown.left
.current-format.button.dropdown-toggle(data-toggle="dropdown")
- var allformats = window.PokeBattle.conditions.Formats()
ul.dropdown-menu(role="menu")
li
a(href="#", data-format="insur1000") 1000 PBV Insurgence
li
a(href="#", data-format="xy1000") 1000 PBV XY
li
a(href="#", data-format="xy500") 500 PBV XY
for format in allformats
li
a(href="#", data-format="#{format.name}") #{format.humanName}
.button.button_blue.save_team.disabled Save
.button.go_back Back
.navigation

View File

@@ -25,16 +25,15 @@ mixin printStat(statName, keyName)
each species in speciesList
option(value=species)= species
.species-info
.non-stats
.teambuilder_row.pbv-row
.teambuilder_col.non-stat-label PBV:
.teambuilder_row.format_row
.teambuilder_col.non-stat.label.formatname
.teambuilder_col
span.individual-pbv
span.individual-format
.right
span.total-pbv
span.total-format
/
span.max-pbv
span.max-format
.teambuilder_row
.teambuilder_col.non-stat-label Nickname:
.teambuilder_col

View File

@@ -7,6 +7,11 @@ each pokemon, i in pokemonList
em.name Empty
else
.name= pokemon.get("species")
.pokemon-pbv
| PBV:
span.pbv-value= pokemon.getPBV()
if pokemon.getTeam().hasPBV()
.pokemon-pbv
| PBV:
span.pbv-value= pokemon.getPBV()
else if pokemon.getTeam().hasTier()
.pokemon-pbv
| Tier:
span.pbv-value= pokemon.getTier().humanName