… | |
… | |
42 | aio_rename "$cf::LOCALDIR/highscore~", "$cf::LOCALDIR/highscore" |
42 | aio_rename "$cf::LOCALDIR/highscore~", "$cf::LOCALDIR/highscore" |
43 | and return; |
43 | and return; |
44 | |
44 | |
45 | aio_pathsync "$cf::LOCALDIR"; |
45 | aio_pathsync "$cf::LOCALDIR"; |
46 | |
46 | |
47 | warn "saved highscore file.\n"; |
47 | cf::trace "saved highscore file.\n"; |
48 | |
48 | |
49 | 1 |
49 | 1 |
50 | } |
50 | } |
51 | |
51 | |
52 | our $HEADER = " | rank | name | experience | reason | HP |mana |grace|\n"; |
52 | our $HEADER = " | rank | name | experience | reason | HP |mana |grace|\n"; |
… | |
… | |
148 | . (fmt -1 + (scalar @$hiscore), $hiscore->[-1]) |
148 | . (fmt -1 + (scalar @$hiscore), $hiscore->[-1]) |
149 | . (fmt undef, $score) |
149 | . (fmt undef, $score) |
150 | . $SEP; |
150 | . $SEP; |
151 | } |
151 | } |
152 | |
152 | |
153 | warn $msg;#d# remove once working stable |
153 | cf::info $msg;#d# remove once working stable |
154 | |
154 | |
155 | $ob->send_msg ($SCORE_CHANNEL => $msg, cf::NDI_CLEAR); |
155 | $ob->send_msg ($SCORE_CHANNEL => $msg, cf::NDI_CLEAR); |
156 | |
156 | |
157 | if ($save) { |
157 | if ($save) { |
158 | save_hiscore $hiscore |
158 | save_hiscore $hiscore |