1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-10-28 02:00:04 +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

@@ -15,12 +15,10 @@ p
.dropdown
.select.select-format(data-toggle = "dropdown")
ul.dropdown-menu.format-dropdown(role = "menu")
li
a.select-format-dropdown-item(data-format="insur1000") 1000 PBV Insurgence
li
a.select-format-dropdown-item(data-format="xy1000") 1000 PBV XY
li
a.select-format-dropdown-item(data-format="xy500") 500 PBV XY
- var allformats = window.PokeBattle.conditions.Formats()
each format in allformats
li
a.select-format-dropdown-item(data-format="#{format.name}") #{format.humanName}
p
strong Select a team:

View File

@@ -5,6 +5,14 @@ if team.hasPBV()
else
span.red= team.getPBV()
| /#{team.getMaxPBV()}
else if team.hasTier()
.team-tier Tier:
if team.getTier().tierRank <= team.getMaxTier().tierRank
= team.getTier().humanName
else
span.red= team.getTier().humanName
| /#{team.getMaxTier().humanName}
.team_icons.clearfix
each pokemon, i in team.get('pokemon').models
- var style = window.PokemonIconBackground(pokemon)

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