Pick Phase
{% if vote_rejected %}
The previous vote has been rejected ({{ previous_vote.accepts }}-{{previous_vote.rejects }}).
A new leader has been chosen.
{% endif %}
This will be vote #{{ vote_num }} of 5 for this mission.
Your leader, {{ leader.name }}, is choosing {{ team_size }} players for mission {{ round_num }}:
{% for chosen_player in chosen %}
- {{ chosen_player.name }}
{% endfor %}
{% if player in chosen %}
You have been chosen!
{% endif %}
{% endblock %}
{% block game_handle_new_status %}
if(oldStatus.game_phase == newStatus.game_phase
&& oldStatus.round_num == newStatus.round_num
&& oldStatus.vote_num == newStatus.vote_num) {
if(JSON.stringify(oldStatus.chosen)
!= JSON.stringify(newStatus.chosen)) {
chosen_list = document.getElementById('chosen-for-mission');
$(chosen_list).empty();
newStatus.chosen.forEach(function(name) {
var el = document.createElement('li');
el.innerText = name;
chosen_list.appendChild(el);
});
statusObj.chosen = newStatus.chosen;
}
if(statusObj.you_chosen != newStatus.you_chosen) {
$('#you-chosen').text(newStatus.you_chosen
? "You have been chosen!"
: "");
statusObj.you_chosen = newStatus.you_chosen;
}
return true;
} else {
return false;
}
{% endblock %}