Skip to content

Commit

Permalink
Add ability bans to tier gui, make pokemon section smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalMoogle committed Apr 6, 2015
1 parent 380e9f6 commit 161437f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Server/tierwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,18 @@ void TierWindow::openTierEdit(Tier *t)
helper->addConfigHelper(new ConfigSpin("Minimum generation Pokemon obtained", t->minGen, -1, 6));
helper->addConfigHelper(new ConfigCheck("Ban pokemon/moves/items (uncheck to restrict the choice to them instead)", t->banPokes));
helper->addConfigHelper(new ConfigSpin("Max number of pokemon", t->numberOfPokemons, 1, 6));
helper->addConfigHelper(new ConfigText("Pokemon", pokemons));
helper->addConfigHelper(new ConfigLine("Pokemon", pokemons));
helper->addConfigHelper(new ConfigLine("Moves", moves));
helper->addConfigHelper(new ConfigLine("Items", items));
helper->addConfigHelper(new ConfigLine("Abilities", abilities));
helper->addConfigHelper(new ConfigSpin("Max number of restricted pokemon", t->maxRestrictedPokes, 0, 6));
helper->addConfigHelper(new ConfigLine("Restricted Pokemon", restrPokemons));
helper->addConfigHelper(new ConfigSpin("Pokemon's max level", t->maxLevel, 1, 100));

pokemons = t->getBannedPokes();
moves = t->getBannedMoves();
items = t->getBannedItems();
abilities = t->getBannedAbilities();
restrPokemons = t->getRestrictedPokes();

helper->addConfigHelper(new ConfigCombo<int>("Battle Mode in Find Battle", t->mode, QStringList() << "Singles" << "Doubles" << "Triples"
Expand Down Expand Up @@ -262,6 +264,7 @@ void TierWindow::updateTier()
currentTier->importBannedItems(items);
currentTier->importBannedPokes(pokemons);
currentTier->importBannedMoves(moves);
currentTier->importBannedAbilities(abilities);
currentTier->importRestrictedPokes(restrPokemons);

int clRes = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Server/tierwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private slots:
void clearCurrentEdit();
/* Data used to configure categories / tiers */
QString parent;
QString pokemons, restrPokemons, moves, items;
QString pokemons, restrPokemons, moves, items, abilities;
TierCategory *currentTierCat;
Tier *currentTier;
Type currentType;
Expand Down

0 comments on commit 161437f

Please sign in to comment.