(function($) { var BattleRoom = this.BattleRoom = this.Room.extend({ minWidth: 955, maxWidth: 1180, initialize: function(data) { this.me = {}; this.$el.addClass('ps-room-opaque').html('
← Your opponent has disconnected. Click this to delay your victory.
← Your opponent has disconnected. Click this if they don\'t reconnect.
Base power: ' + basePower + '
'; text += 'Accuracy: ' + accuracy + '
'; if (move.desc) { text += '' + move.desc + '
'; } text += 'HP: ' + pokemon.hpDisplay() +exacthp+(pokemon.status?' '+pokemon.status.toUpperCase()+'':'')+'
'; if (!pokemon.baseAbility && !pokemon.ability) { text += 'Possible abilities: ' + Tools.getAbility(template.abilities['0']).name; if (template.abilities['1']) text += ', ' + Tools.getAbility(template.abilities['1']).name; if (template.abilities['DW']) text += ', ' + Tools.getAbility(template.abilities['DW']).name; text += '
'; } else if (pokemon.ability) { text += 'Ability: ' + Tools.getAbility(pokemon.ability).name + '
'; } else if (pokemon.baseAbility) { text += 'Ability: ' + Tools.getAbility(pokemon.baseAbility).name + '
'; } if (pokemon.item) { text += 'Item: ' + Tools.getItem(pokemon.item).name + '
'; } if (pokemon.moves && pokemon.moves.length && (!isActive || isActive === 'foe')) { text += '';
for (var i = 0; i < pokemon.moves.length; i++) {
var name = Tools.getMove(pokemon.moves[i]).name;
text += '⋅ ' + name + '
';
}
text += '