this["JST"] = this["JST"] || {};
this["JST"]["alt_dropdown"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),alts = locals_.alts,username = locals_.username,alt = locals_.alt;if ( alts)
{
buf.push("
" + (jade.escape(null == (jade.interp = username) ? "" : jade.interp)) + "(none)
");
// iterate alts
;(function(){
var $$obj = alts;
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var alt = $$obj[$index];
buf.push("" + (jade.escape(null == (jade.interp = alt) ? "" : jade.interp)) + "
");
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var alt = $$obj[$index];
buf.push("" + (jade.escape(null == (jade.interp = alt) ? "" : jade.interp)) + "
");
}
}
}).call(this);
if ( alts.length < 5)
{
buf.push("+ Add Alt
");
}
}
else
{
if ( alt)
{
buf.push("" + (jade.escape(null == (jade.interp = alt) ? "" : jade.interp)) + "
");
}
else
{
buf.push("" + (jade.escape(null == (jade.interp = username) ? "" : jade.interp)) + "(none)
");
}
};return buf.join("");
};
this["JST"]["battle"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),yourIndex = locals_.yourIndex,yourTeam = locals_.yourTeam,opponentTeam = locals_.opponentTeam,window = locals_.window;for (var i = 0; i < 2; i++)
{
var pokemonClass = (i === yourIndex ? " bottom" : " top")
var team = (i === yourIndex ? yourTeam : opponentTeam).get('pokemon')
for (var j = 0, len = team.length; j < len; j++)
{
buf.push("");
if ( (team.at(j).attributes.species == 'Zoroark' || team.at(j).attributes.species == 'Zorua') && team.at(j).attributes.percent == 100)
{
buf.push(null == (jade.interp = window.JST['battle_pokemon']({pokemon: team.at(team.length - 1)})) ? "" : jade.interp);
}
else
{
buf.push(null == (jade.interp = window.JST['battle_pokemon']({pokemon: team.at(j)})) ? "" : jade.interp);
}
buf.push("
");
}
};return buf.join("");
};
this["JST"]["battle_actions"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),window = locals_.window,validActions = locals_.validActions,yourTeam = locals_.yourTeam;var moveButton_mixin = function(forPokemon, i){
var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};
var moveName = forPokemon.get('moves')[i]
var origName = moveName
var moveType = forPokemon.get('moveTypes')[i].toLowerCase()
var pp = forPokemon.get('pp')[i]
var maxPP = forPokemon.get('maxPP')[i]
var isEnabled = validMoves.indexOf(moveName) !== -1
var disabledClass = (!isEnabled ? ' disabled' : '')
var bigClass = (validMoves.length === 1 ? ' big' : '')
var spanClass = (validMoves.length === 1 ? 'span12' : 'span6')
if ( moveName === 'Hidden Power')
{
moveType = window.HiddenPower.BW.type(forPokemon.get('ivs'))
moveName += ' (' + moveType + ')'
moveType = moveType.toLowerCase()
}
var moveClass = moveType + disabledClass + bigClass
buf.push("" + (jade.escape(null == (jade.interp = moveName) ? "" : jade.interp)) + "
" + (jade.escape(null == (jade.interp = pp) ? "" : jade.interp)) + "/" + (jade.escape((jade.interp = maxPP) == null ? '' : jade.interp)) + "
");
};
var validMoves = validActions.moves || []
var validSwitches = validActions.switches || []
buf.push("Moves ");
var pokemon = yourTeam.at(0)
var numMoves = pokemon.get('moves').length
if ( validMoves.length === 1)
{
var moveIndex = pokemon.get('moves').indexOf(validMoves[0])
buf.push("
");
if ( moveIndex === -1)
{
buf.push("
" + (jade.escape(null == (jade.interp = validMoves[0]) ? "" : jade.interp)) + "
");
}
else
{
moveButton_mixin(pokemon, moveIndex);
}
buf.push("
");
}
else
{
for (var i = 0; i < numMoves; i += 2)
{
buf.push("
");
moveButton_mixin(pokemon, i);
if ( i + 1 < numMoves)
{
moveButton_mixin(pokemon, i + 1);
}
buf.push("
");
}
}
buf.push("
Mega Evolve
Pokemon ");
var teamPokemon = yourTeam.get('pokemon')
for (var j = 0, len = teamPokemon.length; j < len; j += 3)
{
buf.push("
");
for (var i = j; i < j + 3; i++)
{
var pokemon = teamPokemon.at(i)
var isEnabled = validSwitches.indexOf(i) !== -1
var disabledClass = (!isEnabled ? 'disabled' : '')
if ( pokemon)
{
buf.push("
");
}
}
buf.push("
");
}
buf.push("
" + (null == (jade.interp = window.JST['spinner']()) ? "" : jade.interp) + "
");;return buf.join("");
};
this["JST"]["battle_controls"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),speeds = locals_.speeds,currentSpeed = locals_.currentSpeed;buf.push("");;return buf.join("");
};
this["JST"]["battle_end"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),window = locals_.window;buf.push("");;return buf.join("");
};
this["JST"]["battle_hover_info"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),pokemon = locals_.pokemon;buf.push("HP: " + (jade.escape((jade.interp = pokemon.getPercentHP()) == null ? '' : jade.interp)) + "%");
if ( pokemon.has('hp'))
{
buf.push(" (" + (jade.escape((jade.interp = pokemon.get('hp')) == null ? '' : jade.interp)) + "/" + (jade.escape((jade.interp = pokemon.get('maxHP')) == null ? '' : jade.interp)) + ")");
}
buf.push(" ");
if ( pokemon.has('ability'))
{
buf.push("Ability: " + (jade.escape((jade.interp = pokemon.get('ability')) == null ? '' : jade.interp)) + "");
}
else
{
buf.push("Possible abilities: " + (jade.escape((jade.interp = pokemon.getAbilities().join(', ')) == null ? '' : jade.interp)) + "");
}
buf.push("Status: " + (jade.escape((jade.interp = pokemon.getStatus()) == null ? '' : jade.interp)) + "
");
if ( pokemon.has('moves'))
{
buf.push("");
// iterate pokemon.get('moves')
;(function(){
var $$obj = pokemon.get('moves');
if ('number' == typeof $$obj.length) {
for (var i = 0, $$l = $$obj.length; i < $$l; i++) {
var moveName = $$obj[i];
var moveClass = pokemon.get('moveTypes')[i].toLowerCase()
var pp = pokemon.get('pp')[i]
var maxPP = pokemon.get('maxPP')[i]
buf.push("
" + (jade.escape(null == (jade.interp = moveName) ? "" : jade.interp)) + "
" + (jade.escape(null == (jade.interp = pp) ? "" : jade.interp)) + "/" + (jade.escape((jade.interp = maxPP) == null ? '' : jade.interp)) + "
");
}
} else {
var $$l = 0;
for (var i in $$obj) {
$$l++; var moveName = $$obj[i];
var moveClass = pokemon.get('moveTypes')[i].toLowerCase()
var pp = pokemon.get('pp')[i]
var maxPP = pokemon.get('maxPP')[i]
buf.push("
" + (jade.escape(null == (jade.interp = moveName) ? "" : jade.interp)) + "
" + (jade.escape(null == (jade.interp = pp) ? "" : jade.interp)) + "/" + (jade.escape((jade.interp = maxPP) == null ? '' : jade.interp)) + "
");
}
}
}).call(this);
buf.push("
");
};return buf.join("");
};
this["JST"]["battle_list"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),battles = locals_.battles;buf.push("Battle List (" + (jade.escape((jade.interp = battles.length) == null ? '' : jade.interp)) + " battles) ");
if ( battles.length == 0)
{
buf.push("
There are no active battles happening at this time.
");
}
// iterate battles
;(function(){
var $$obj = battles;
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var battle = $$obj[$index];
buf.push("
" + (jade.escape(null == (jade.interp = battle[1]) ? "" : jade.interp)) + " VS " + (jade.escape(null == (jade.interp = battle[2]) ? "" : jade.interp)) + "
");
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var battle = $$obj[$index];
buf.push("
" + (jade.escape(null == (jade.interp = battle[1]) ? "" : jade.interp)) + " VS " + (jade.escape(null == (jade.interp = battle[2]) ? "" : jade.interp)) + "
");
}
}
}).call(this);
buf.push("
");;return buf.join("");
};
this["JST"]["battle_pokemon"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),pokemon = locals_.pokemon;var percent = pokemon.getPercentHP()
var color = ((percent <= 25) ? "#f00" : (percent <= 50) ? "#ff0" : "#0f0")
var style = "width: " + percent + "%"
var greenStyle = style + "; background-color: " + color
buf.push("" + (jade.escape(null == (jade.interp = pokemon.get('name')) ? "" : jade.interp)) + " ");
if ( pokemon.get('gender') === 'F')
{
buf.push(" ♀ ");
}
else if ( pokemon.get('gender') === 'M')
{
buf.push(" ♂ ");
}
if ( pokemon.get('level') != 120)
{
buf.push(" Lv. " + (jade.escape(null == (jade.interp = pokemon.get('level')) ? "" : jade.interp)) + " ");
}
buf.push("" + (jade.escape((jade.interp = percent) == null ? '' : jade.interp)) + "%
");;return buf.join("");
};
this["JST"]["battle_team_preview"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),battle = locals_.battle,window = locals_.window;var displayOtherTeam_mixin = function(team, text){
var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};
var teamvisible = team.collection.parents[0].get('visibleteam')
var isdef = typeof teamvisible
buf.push("" + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "
");
if ( isdef != 'undefined' && teamvisible)
{
team.get('pokemon').each(function(pokemon) {
{
buf.push("");
displayPokemon_mixin(pokemon);
buf.push(" ");
}
})
}
buf.push(" ");
};
var displayYourTeam_mixin = function(team, text){
var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};
buf.push("" + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "
");
for (var i = 0; i < battle.numActive; i++)
{
buf.push("");
if ( battle.numActive > 1)
{
buf.push("Lead " + (jade.escape((jade.interp = i + 1) == null ? '' : jade.interp)) + "");
}
else
{
buf.push("Lead");
}
buf.push(" ");
}
buf.push(" ");
yourTeam.get('pokemon').each(function(pokemon, i) {
{
buf.push("");
displayPokemon_mixin(pokemon, i);
buf.push(" ");
}
})
buf.push(" Start battle
");
};
var displayPokemon_mixin = function(pokemon, i){
var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};
buf.push("");
var style = window.PokemonIconBackground(pokemon)
buf.push("
");
if ( pokemon.get('gender') === 'F')
{
buf.push("♀
");
}
else if ( pokemon.get('gender') === 'M')
{
buf.push("♂
");
}
if ( pokemon.get('level') != 100)
{
buf.push("Lv." + (jade.escape((jade.interp = pokemon.get('level')) == null ? '' : jade.interp)) + "
");
}
};
buf.push("");
var theirTeam = battle.getOpponentTeam()
var yourTeam = battle.getTeam()
displayOtherTeam_mixin(theirTeam, theirTeam.get('owner') + "'s team:");
if ( !battle.get('spectating'))
{
displayYourTeam_mixin(yourTeam, "Click Pokemon to switch them around:");
}
else
{
displayOtherTeam_mixin(yourTeam, yourTeam.get('owner') + "'s team:");
}
buf.push("
");;return buf.join("");
};
this["JST"]["battle_user_info"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),yourTeam = locals_.yourTeam,opponentTeam = locals_.opponentTeam,yourIndex = locals_.yourIndex,window = locals_.window;// iterate [ yourTeam, opponentTeam ]
;(function(){
var $$obj = [ yourTeam, opponentTeam ];
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var team = $$obj[$index];
var leftOrRight = (team === yourTeam ? 'left' : 'right')
var teamIndex = (team === yourTeam ? yourIndex : 1 - yourIndex)
buf.push("" + (jade.escape(null == (jade.interp = team.get('owner')) ? "" : jade.interp)) + "
");
var teamvisible = team.collection.parents[0].get('visibleteam')
var isdef = typeof teamvisible
var orig = team.get('pokemon')
var teamPokemon = team.getRandomOrder()
for (var i = 0, len = teamPokemon.length; i < len; i += 1)
{
var pokemon = teamPokemon[i]
if ( pokemon)
{
buf.push("
");
var origpkmn = orig.findWhere({species: pokemon.species});
var faintClass = (origpkmn.isFainted() ? 'fainted' : '')
var style = window.PokemonIconBackground(origpkmn)
if ( isdef != 'undefined' && teamvisible)
{
buf.push("
");
if ( !origpkmn.isFainted())
{
buf.push("
");
}
}
else
{
var hasbeeninbattle = origpkmn.get('beeninbattle')
if ( hasbeeninbattle == true)
{
buf.push("
");
if ( !origpkmn.isFainted())
{
buf.push("
");
}
}
else
{
var newstyle = "background:url('../Sprites/Icons/iconempty.png')!important; background-size: cover!important;"
buf.push("
");
if ( !origpkmn.isFainted())
{
buf.push("
");
}
}
}
buf.push("
");
}
}
buf.push("
");
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var team = $$obj[$index];
var leftOrRight = (team === yourTeam ? 'left' : 'right')
var teamIndex = (team === yourTeam ? yourIndex : 1 - yourIndex)
buf.push("" + (jade.escape(null == (jade.interp = team.get('owner')) ? "" : jade.interp)) + "
");
var teamvisible = team.collection.parents[0].get('visibleteam')
var isdef = typeof teamvisible
var orig = team.get('pokemon')
var teamPokemon = team.getRandomOrder()
for (var i = 0, len = teamPokemon.length; i < len; i += 1)
{
var pokemon = teamPokemon[i]
if ( pokemon)
{
buf.push("
");
var origpkmn = orig.findWhere({species: pokemon.species});
var faintClass = (origpkmn.isFainted() ? 'fainted' : '')
var style = window.PokemonIconBackground(origpkmn)
if ( isdef != 'undefined' && teamvisible)
{
buf.push("
");
if ( !origpkmn.isFainted())
{
buf.push("
");
}
}
else
{
var hasbeeninbattle = origpkmn.get('beeninbattle')
if ( hasbeeninbattle == true)
{
buf.push("
");
if ( !origpkmn.isFainted())
{
buf.push("
");
}
}
else
{
var newstyle = "background:url('../Sprites/Icons/iconempty.png')!important; background-size: cover!important;"
buf.push("
");
if ( !origpkmn.isFainted())
{
buf.push("
");
}
}
}
buf.push("
");
}
}
buf.push("
");
}
}
}).call(this);
;return buf.join("");
};
this["JST"]["battle_window"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),battle = locals_.battle,window = locals_.window;buf.push("");
var numBackgrounds = 6
var backgroundNumber = parseInt(battle.id.substr(0, 6), 16)
backgroundNumber = (backgroundNumber % numBackgrounds)
buf.push("
" + (null == (jade.interp = window.JST['chat']()) ? "" : jade.interp) + "
");;return buf.join("");
};
this["JST"]["challenge"] = function anonymous(locals
/**/) {
var buf = [];
buf.push("
");;return buf.join("");
};
this["JST"]["chat"] = function anonymous(locals
/**/) {
var buf = [];
buf.push("");;return buf.join("");
};
this["JST"]["modals/achievements"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),achievements = locals_.achievements,window = locals_.window;buf.push("");
// iterate achievements
;(function(){
var $$obj = achievements;
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var achievement = $$obj[$index];
buf.push("
" + (jade.escape(null == (jade.interp = achievement.name) ? "" : jade.interp)) + " " + (jade.escape(null == (jade.interp = achievement.condition) ? "" : jade.interp)) + "
");
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var achievement = $$obj[$index];
buf.push("
" + (jade.escape(null == (jade.interp = achievement.name) ? "" : jade.interp)) + " " + (jade.escape(null == (jade.interp = achievement.condition) ? "" : jade.interp)) + "
");
}
}
}).call(this);
buf.push("
");;return buf.join("");
};
this["JST"]["modals/credits"] = function anonymous(locals
/**/) {
var buf = [];
buf.push("Pokémon is © 1995-2016 Nintendo. All Pokemon names and sprites are\n owned by them. Huge thanks to PokeBattle.com for developing this awesome engine\n You can find their engine at this GitHub repo! Big thanks to Suzey and the rest of the devteam of Insurgence for\n creating Insurgence Major thanks to my faithful testers who helped me make sure this thing\n actually worked And of course thanks to you, the user, for actually using this thing,\n we love you ");;return buf.join("");
};
this["JST"]["modals/errors"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),title = locals_.title,body = locals_.body;buf.push("" + (null == (jade.interp = body) ? "" : jade.interp) + "
");;return buf.join("");
};
this["JST"]["modals/export_team"] = function anonymous(locals
/**/) {
var buf = [];
buf.push("");;return buf.join("");
};
this["JST"]["modals/import_team"] = function anonymous(locals
/**/) {
var buf = [];
buf.push("");;return buf.join("");
};
this["JST"]["modals/new_client"] = function anonymous(locals
/**/) {
var buf = [];
buf.push("Your client is outdated! Please refresh to upgrade to the latest version of the client. If you\n choose not to refresh, you may see odd behavior. If you were editing\n a team, you should save the team first, then manually refresh.
");;return buf.join("");
};
this["JST"]["modals/teams_differ"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),teamText = locals_.teamText;buf.push("Your copy of this team differs from ours!
Perhaps you edited this team on a different computer? Or disconnected\n during a save? Either way, this is the team we have:
" + (jade.escape(null == (jade.interp = teamText) ? "" : jade.interp)) + " ");;return buf.join("");
};
this["JST"]["modify"] = function anonymous(locals
/**/) {
var buf = [];
;return buf.join("");
};
this["JST"]["move_hover_info"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),move = locals_.move;buf.push("Base Power: ");
if ( move.power == 0)
{
buf.push(" —");
}
else
{
buf.push(" " + (jade.escape((jade.interp = move.power) == null ? '' : jade.interp)) + "");
}
buf.push("
Accuracy: ");
if ( move.accuracy == 0)
{
buf.push(" —");
}
else
{
buf.push(" " + (jade.escape((jade.interp = move.accuracy) == null ? '' : jade.interp)) + "%");
}
buf.push("
");
if ( move.priority != 0)
{
buf.push("Priority: ");
if ( move.priority > 0)
{
buf.push(" +" + (jade.escape((jade.interp = move.priority) == null ? '' : jade.interp)) + "");
}
else
{
buf.push(" " + (jade.escape((jade.interp = move.priority) == null ? '' : jade.interp)) + "");
}
buf.push("
");
}
buf.push("Description: " + (jade.escape((jade.interp = move.description) == null ? '' : jade.interp)) + "
");;return buf.join("");
};
this["JST"]["navigation"] = function anonymous(locals
/**/) {
var buf = [];
buf.push("
Chat Other links ");;return buf.join("");
};
this["JST"]["new_battle"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),window = locals_.window,defaultClauses = locals_.defaultClauses;buf.push("In-battle display name:
Format:
Select a team:
Clauses:
");;return buf.join("");
};
this["JST"]["private_message"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),id = locals_.id,title = locals_.title;buf.push(" " + (jade.escape((jade.interp = title) == null ? '' : jade.interp)) + "
");;return buf.join("");
};
this["JST"]["replay"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),replay = locals_.replay,window = locals_.window;buf.push("");;return buf.join("");
};
this["JST"]["spinner"] = function anonymous(locals
/**/) {
var buf = [];
buf.push("");;return buf.join("");
};
this["JST"]["team_dropdown"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),team = locals_.team,window = locals_.window,teams = locals_.teams;if ( team)
{
buf.push("" + (jade.escape(null == (jade.interp = team.getName()) ? "" : jade.interp)) + "
" + (null == (jade.interp = window.JST['team_small']({team: team, window: window})) ? "" : jade.interp));
}
else
{
// iterate teams
;(function(){
var $$obj = teams;
if ('number' == typeof $$obj.length) {
for (var i = 0, $$l = $$obj.length; i < $$l; i++) {
var team = $$obj[i];
buf.push("" + (jade.escape(null == (jade.interp = team.getName()) ? "" : jade.interp)) + "
" + (null == (jade.interp = window.JST['team_small']({team: team, window: window})) ? "" : jade.interp) + " ");
}
} else {
var $$l = 0;
for (var i in $$obj) {
$$l++; var team = $$obj[i];
buf.push("" + (jade.escape(null == (jade.interp = team.getName()) ? "" : jade.interp)) + "
" + (null == (jade.interp = window.JST['team_small']({team: team, window: window})) ? "" : jade.interp) + " ");
}
}
}).call(this);
buf.push("Build a Team ");
};return buf.join("");
};
this["JST"]["team_small"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),team = locals_.team,window = locals_.window;if ( team.hasPBV())
{
buf.push("PBV: ");
if ( team.getPBV() <= team.getMaxPBV())
{
buf.push(jade.escape(null == (jade.interp = team.getPBV()) ? "" : jade.interp));
}
else
{
buf.push("" + (jade.escape(null == (jade.interp = team.getPBV()) ? "" : jade.interp)) + " ");
}
buf.push("/" + (jade.escape((jade.interp = team.getMaxPBV()) == null ? '' : jade.interp)) + "
");
}
else if ( team.hasTier())
{
buf.push("Tier: ");
if ( team.getTier().tierRank <= team.getMaxTier().tierRank)
{
buf.push(jade.escape(null == (jade.interp = team.getTier().humanName) ? "" : jade.interp));
}
else
{
buf.push("" + (jade.escape(null == (jade.interp = team.getTier().humanName) ? "" : jade.interp)) + " ");
}
buf.push("/" + (jade.escape((jade.interp = team.getMaxTier().humanName) == null ? '' : jade.interp)) + "
");
}
buf.push("");
// iterate team.get('pokemon').models
;(function(){
var $$obj = team.get('pokemon').models;
if ('number' == typeof $$obj.length) {
for (var i = 0, $$l = $$obj.length; i < $$l; i++) {
var pokemon = $$obj[i];
var style = window.PokemonIconBackground(pokemon)
buf.push("
");
}
} else {
var $$l = 0;
for (var i in $$obj) {
$$l++; var pokemon = $$obj[i];
var style = window.PokemonIconBackground(pokemon)
buf.push("
");
}
}
}).call(this);
buf.push("
");;return buf.join("");
};
this["JST"]["teambuilder/main"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),window = locals_.window;buf.push("");;return buf.join("");
};
this["JST"]["teambuilder/moves"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),pokemon = locals_.pokemon,window = locals_.window;buf.push("Name Type Cat. Power Acc. PP Description ");
// iterate pokemon.getMovepool()
;(function(){
var $$obj = pokemon.getMovepool();
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var move = $$obj[$index];
buf.push("" + (jade.escape(null == (jade.interp = move.name) ? "" : jade.interp)) + " ");
var damageFriendly = move.damage[0].toUpperCase() + move.damage.substr(1)
buf.push(" " + (jade.escape(null == (jade.interp = (move.power == 0) ? "-" : move.power) ? "" : jade.interp)) + " " + (jade.escape(null == (jade.interp = (move.accuracy == 0) ? "-" : move.accuracy + '%') ? "" : jade.interp)) + " " + (jade.escape(null == (jade.interp = move.pp) ? "" : jade.interp)) + " " + (jade.escape(null == (jade.interp = move.description) ? "" : jade.interp)) + " ");
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var move = $$obj[$index];
buf.push("" + (jade.escape(null == (jade.interp = move.name) ? "" : jade.interp)) + " ");
var damageFriendly = move.damage[0].toUpperCase() + move.damage.substr(1)
buf.push(" " + (jade.escape(null == (jade.interp = (move.power == 0) ? "-" : move.power) ? "" : jade.interp)) + " " + (jade.escape(null == (jade.interp = (move.accuracy == 0) ? "-" : move.accuracy + '%') ? "" : jade.interp)) + " " + (jade.escape(null == (jade.interp = move.pp) ? "" : jade.interp)) + " " + (jade.escape(null == (jade.interp = move.description) ? "" : jade.interp)) + " ");
}
}
}).call(this);
buf.push("
");;return buf.join("");
};
this["JST"]["teambuilder/pokemon"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),speciesList = locals_.speciesList,itemList = locals_.itemList,window = locals_.window;var printStat_mixin = function(statName, keyName){
var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};
buf.push("" + (jade.escape((jade.interp = statName) == null ? '' : jade.interp)) + ": ");
};
buf.push("");;return buf.join("");
};
this["JST"]["teambuilder/pokemon_list"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),pokemonList = locals_.pokemonList,window = locals_.window;// iterate pokemonList
;(function(){
var $$obj = pokemonList;
if ('number' == typeof $$obj.length) {
for (var i = 0, $$l = $$obj.length; i < $$l; i++) {
var pokemon = $$obj[i];
buf.push("");
var style = window.PokemonIconBackground(pokemon)
buf.push("
");
if ( pokemon.isNull)
{
buf.push("
Empty ");
}
else
{
buf.push("
" + (jade.escape(null == (jade.interp = pokemon.get("species")) ? "" : jade.interp)) + "
");
if ( pokemon.getTeam().hasPBV())
{
buf.push("
PBV: " + (jade.escape(null == (jade.interp = pokemon.getPBV()) ? "" : jade.interp)) + "
");
}
else if ( pokemon.getTeam().hasTier())
{
buf.push("
Tier: " + (jade.escape(null == (jade.interp = pokemon.getTier().humanName) ? "" : jade.interp)) + "
");
}
}
buf.push("
");
}
} else {
var $$l = 0;
for (var i in $$obj) {
$$l++; var pokemon = $$obj[i];
buf.push("");
var style = window.PokemonIconBackground(pokemon)
buf.push("
");
if ( pokemon.isNull)
{
buf.push("
Empty ");
}
else
{
buf.push("
" + (jade.escape(null == (jade.interp = pokemon.get("species")) ? "" : jade.interp)) + "
");
if ( pokemon.getTeam().hasPBV())
{
buf.push("
PBV: " + (jade.escape(null == (jade.interp = pokemon.getPBV()) ? "" : jade.interp)) + "
");
}
else if ( pokemon.getTeam().hasTier())
{
buf.push("
Tier: " + (jade.escape(null == (jade.interp = pokemon.getTier().humanName) ? "" : jade.interp)) + "
");
}
}
buf.push("
");
}
}
}).call(this);
;return buf.join("");
};
this["JST"]["teambuilder/species"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),window = locals_.window,pokemon = locals_.pokemon;buf.push("");
// iterate pokemon.getForme().types
;(function(){
var $$obj = pokemon.getForme().types;
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var type = $$obj[$index];
buf.push("
");
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var type = $$obj[$index];
buf.push("
");
}
}
}).call(this);
buf.push("
");
var formes = pokemon.getSelectableFormes()
if ( formes.length > 1)
{
buf.push("Forme:
");
// iterate formes
;(function(){
var $$obj = formes;
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var forme = $$obj[$index];
var displayedForme = forme[0].toUpperCase() + forme.substr(1)
var selected = (forme === pokemon.get('forme'))
buf.push("" + (jade.escape(null == (jade.interp = displayedForme) ? "" : jade.interp)) + " ");
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var forme = $$obj[$index];
var displayedForme = forme[0].toUpperCase() + forme.substr(1)
var selected = (forme === pokemon.get('forme'))
buf.push("" + (jade.escape(null == (jade.interp = displayedForme) ? "" : jade.interp)) + " ");
}
}
}).call(this);
buf.push(" ");
};return buf.join("");
};
this["JST"]["teambuilder/team"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),team = locals_.team,window = locals_.window;buf.push("" + (jade.escape(null == (jade.interp = team.getName()) ? "" : jade.interp)) + " " + (null == (jade.interp = window.JST['team_small']({team: team, window: window})) ? "" : jade.interp) + "
Export | Clone | Delete
" + (null == (jade.interp = window.JST['spinner']()) ? "" : jade.interp) + "
");;return buf.join("");
};
this["JST"]["teambuilder/teams"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),teams = locals_.teams,window = locals_.window;buf.push("Your teams ");
// iterate teams
;(function(){
var $$obj = teams;
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var team = $$obj[$index];
buf.push(null == (jade.interp = window.JST['teambuilder/team']({team: team, window: window})) ? "" : jade.interp);
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var team = $$obj[$index];
buf.push(null == (jade.interp = window.JST['teambuilder/team']({team: team, window: window})) ? "" : jade.interp);
}
}
}).call(this);
buf.push("
Add new team
Import
");;return buf.join("");
};
this["JST"]["user_list"] = function anonymous(locals
/**/) {
var buf = [];
var locals_ = (locals || {}),userList = locals_.userList;// iterate userList
;(function(){
var $$obj = userList;
if ('number' == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var user = $$obj[$index];
if ( user.isAlt())
{
buf.push("" + (jade.escape(null == (jade.interp = user.getDisplayName()) ? "" : jade.interp)) + " ");
}
else
{
buf.push("" + (jade.escape(null == (jade.interp = user.getDisplayName()) ? "" : jade.interp)) + " ");
}
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++; var user = $$obj[$index];
if ( user.isAlt())
{
buf.push("" + (jade.escape(null == (jade.interp = user.getDisplayName()) ? "" : jade.interp)) + " ");
}
else
{
buf.push("" + (jade.escape(null == (jade.interp = user.getDisplayName()) ? "" : jade.interp)) + " ");
}
}
}
}).call(this);
;return buf.join("");
};