show correct medal

This commit is contained in:
Vincent Riquer 2015-02-14 04:21:07 +01:00
parent 5a14e0a099
commit 408e11348d

12
index
View File

@ -176,7 +176,7 @@ then
do do
if ! (( shown["$stat silver"] )) if ! (( shown["$stat silver"] ))
then then
tableline+=( "$(print_medal $timestamp $stat ${upsilver[$stat]:-0} gold)" ) tableline+=( "$(print_medal $timestamp $stat ${upsilver[$stat]:-0} silver)" )
tableline+=( '<br />' ) tableline+=( '<br />' )
shown["$stat silver"]=1 shown["$stat silver"]=1
fi fi
@ -190,7 +190,7 @@ then
(( count < lvlsilver[level] - silvercount )) && never=1 (( count < lvlsilver[level] - silvercount )) && never=1
if ! (( shown["$stat silver"] )) if ! (( shown["$stat silver"] ))
then then
tableline+=( "$(print_medal $timestamp $stat ${upsilver[$stat]:-0} gold)" ) tableline+=( "$(print_medal $timestamp $stat ${upsilver[$stat]:-0} silver)" )
tableline+=( '<br />' ) tableline+=( '<br />' )
shown["$stat silver"]=1 shown["$stat silver"]=1
fi fi
@ -254,7 +254,7 @@ then
do do
if ! (( shown["$stat platinum"] )) if ! (( shown["$stat platinum"] ))
then then
tableline+=( "$(print_medal $timestamp $stat ${upplatinum[$stat]:-0} gold)" ) tableline+=( "$(print_medal $timestamp $stat ${upplatinum[$stat]:-0} platinum)" )
tableline+=( '<br />' ) tableline+=( '<br />' )
shown["$stat platinum"]=1 shown["$stat platinum"]=1
fi fi
@ -268,7 +268,7 @@ then
(( count < lvlplatinum[level] - platinumcount )) && never=1 (( count < lvlplatinum[level] - platinumcount )) && never=1
if ! (( shown["$stat platinum"] )) if ! (( shown["$stat platinum"] ))
then then
tableline+=( "$(print_medal $timestamp $stat ${upplatinum[$stat]:-0} gold)" ) tableline+=( "$(print_medal $timestamp $stat ${upplatinum[$stat]:-0} platinum)" )
tableline+=( '<br />' ) tableline+=( '<br />' )
shown["$stat platinum"]=1 shown["$stat platinum"]=1
fi fi
@ -293,7 +293,7 @@ then
do do
if ! (( shown["$stat black"] )) if ! (( shown["$stat black"] ))
then then
tableline+=( "$(print_medal $timestamp $stat ${upblack[$stat]:-0} gold)" ) tableline+=( "$(print_medal $timestamp $stat ${upblack[$stat]:-0} black)" )
tableline+=( '<br />' ) tableline+=( '<br />' )
shown["$stat black"]=1 shown["$stat black"]=1
fi fi
@ -307,7 +307,7 @@ then
(( count < lvlblack[level] - blackcount )) && never=1 (( count < lvlblack[level] - blackcount )) && never=1
if ! (( shown["$stat black"] )) if ! (( shown["$stat black"] ))
then then
tableline+=( "$(print_medal $timestamp $stat ${upblack[$stat]:-0} gold)" ) tableline+=( "$(print_medal $timestamp $stat ${upblack[$stat]:-0} black)" )
tableline+=( '<br />' ) tableline+=( '<br />' )
shown["$stat black"]=1 shown["$stat black"]=1
fi fi