Added framework for random team generation, added admin buttons to generate teams, changed authorization to use different forums depending on test or production

This commit is contained in:
Deukhoofd committed 2016-04-11 20:01:11 +02:00
1 parent 03e1e7d440
commit cd9ea965bb
10 files changed
+5620 -5282

No files matched your search

+13 -2
View File
@@ -11,5 +11,16 @@ if window.PokeBattle.username == "Deukhoofd" || window.PokeBattle.username == "t
h5 Admin Commands
.button.get-teams Get all teams
br
| Get teams from user
input(type=text)
| Get Random teams
- var allformats = window.PokeBattle.conditions.Formats()
.dropdown.random-team-admin
.current-format-random-admin.button.dropdown-toggle(data-toggle="dropdown")
a#currentselectedrandomadminformat(href="#", data-format="#{allformats[window.DEFAULT_FORMAT].name}") #{allformats[window.DEFAULT_FORMAT].humanName}
ul.dropdown-menu(role='menu')
for format in allformats
li
a(href="#", data-format="#{format.name}") #{format.humanName}
.button.getrandomteams 1
.button.getrandomteams 5
.button.getrandomteams 10
.button.getrandomteams 25