From ead2e3dbe284dca41e00dc07e3ced4ea030bef95 Mon Sep 17 00:00:00 2001 From: John Nicpon <john@nicpon.org> Date: Fri, 18 Dec 2020 23:22:15 -0800 Subject: [PATCH] Fixed KnK bugs with total score of the month calc and title. --- xtrn/knk/knk.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtrn/knk/knk.js b/xtrn/knk/knk.js index 30579383b8..310c0b7422 100644 --- a/xtrn/knk/knk.js +++ b/xtrn/knk/knk.js @@ -1498,12 +1498,12 @@ function update_userfile(player, computer, won) } f.writeln("--------------------------------------------------------------------"); f.writeln(""); - f.writeln("* Kannons and Katapults Total Score for the Month of January *"); + f.writeln("* Kannons and Katapults Total Score for the Month of "+nowmonth+" *"); f.writeln(""); f.writeln("Rank Name Games Wins Losses Win % Score"); f.writeln("--------------------------------------------------------------------"); for(line=0; line<2; line++) { - if((computer_total <= player_total && line==0) || (computer_total > player_total && line==1)) { + if((computer_total <= player_total && line==1) || (computer_total > player_total && line==0)) { f.writeln(format("%3u %-22s %5u %4u %6u %3u %% %11s" ,line+1 ,'All Users' -- GitLab