Commit bf69f979 authored by user472393's avatar user472393
Browse files

try to correctly implement repick if lost melee style picking

parent 8973d669
......@@ -508,7 +508,7 @@ racer () {
if [[ "$g1loser" != "$loser" ]]; then
# cannot repick a mode unless you have lost it
if [[ "${mode_record[0]}" != "${mode_record[1]}" ]]; then
unset -v "${modes[${mode_record[0]}]}"
unset -v modes[${mode_record[0]}]
fi
printer "<<< decide the victor. the choice is yours @$loser (${elo_db[$loser]%.*}) >>> $(for i in "${modes[@]}"; do printf '%s\t' "$i"; done)"
sleep 1
......@@ -545,7 +545,7 @@ mode_select () {
else
printer ">>> @$p1 (${elo_db[$p1]%.*}) vs. @$p2 (${elo_db[$p2]%.*}) in $ask ${modes[entry]}" ">>> report with !won <<or>> !lost"
$tv_titler -m "${modes[entry]}"
mode_record+=("${!modes[entry]}")
mode_record+=("$entry")
modes[entry]=">>>${modes[entry]}"
tv_updater
modes[entry]="${modes[entry]##*>}"
......@@ -565,9 +565,9 @@ mode_select () {
unset -v modes["$entry"]
break 2
else
printer ">>> @$p1 (${elo_db[$p1]%.*}) vs. @$p2 (${elo_db[$p2]%.*}) in $ask ${modes[entry]}" ">>> report with !won <<or>> !lost"
$tv_titler -m "${modes[entry]}"
mode_record+=("${!modes[entry]}")
printer ">>> @$p1 (${elo_db[$p1]%.*}) vs. @$p2 (${elo_db[$p2]%.*}) in $ask ${modes[entry]}" ">>> report with $p1 !won <<or>> $p1 !lost"
#$tv_titler -m "${modes[entry]}"
mode_record+=("$entry")
sleep 2
result_check
break 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment