From b4f65f3c3cb530e05a813ddda438b58281b7f07e Mon Sep 17 00:00:00 2001 From: akayn <80561998+zkayns@users.noreply.github.com> Date: Wed, 7 Jun 2023 19:50:45 -0400 Subject: [PATCH 1/2] Update database.sql set default likes and downloads to 0 --- database.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.sql b/database.sql index 9caf95f03..bcc8337ce 100644 --- a/database.sql +++ b/database.sql @@ -252,8 +252,8 @@ CREATE TABLE `levels` ( `levelInfo` mediumtext COLLATE utf8mb3_unicode_ci NOT NULL, `secret` mediumtext COLLATE utf8mb3_unicode_ci NOT NULL, `starDifficulty` int(11) NOT NULL DEFAULT 0 COMMENT '0=N/A 10=EASY 20=NORMAL 30=HARD 40=HARDER 50=INSANE 50=AUTO 50=DEMON', - `downloads` int(11) NOT NULL DEFAULT 300, - `likes` int(11) NOT NULL DEFAULT 100, + `downloads` int(11) NOT NULL DEFAULT 0, + `likes` int(11) NOT NULL DEFAULT 0, `starDemon` int(1) NOT NULL DEFAULT 0, `starAuto` tinyint(4) NOT NULL DEFAULT 0, `starStars` int(11) NOT NULL DEFAULT 0, From 5c67411e8c8cbb1e71211b3b2d62c850f27abd2d Mon Sep 17 00:00:00 2001 From: akayn <80561998+zkayns@users.noreply.github.com> Date: Wed, 7 Jun 2023 19:53:12 -0400 Subject: [PATCH 2/2] Update getGJScores.php Added sakujes variable to control if Sakujes shows up on leaderboards on April 1st --- incl/scores/getGJScores.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/incl/scores/getGJScores.php b/incl/scores/getGJScores.php index a0796025c..21345b564 100644 --- a/incl/scores/getGJScores.php +++ b/incl/scores/getGJScores.php @@ -7,6 +7,7 @@ $stars = 0; $count = 0; $xi = 0; +$sakujes = 1; $lbstring = ""; $date = date("d-m"); if(empty($_POST["gameVersion"])){ @@ -123,7 +124,7 @@ $extid = 0; } $xi++; - if($date == "01-04"){ + if($date == "01-04" && $sakujes = 1){ $lbstring .= "1:sakujes:2:".$user["userID"].":13:999:17:999:6:".$xi.":9:9:10:9:11:8:14:1:15:3:16:".$extid.":3:999:8:99999:4:999:7:".$extid.":46:99999|"; }else{ $lbstring .= "1:".$user["userName"].":2:".$user["userID"].":13:".$user["coins"].":17:".$user["userCoins"].":6:".$xi.":9:".$user["icon"].":10:".$user["color1"].":11:".$user["color2"].":14:".$user["iconType"].":15:".$user["special"].":16:".$extid.":3:".$user["stars"].":8:".round($user["creatorPoints"],0,PHP_ROUND_HALF_DOWN).":4:".$user["demons"].":7:".$extid.":46:".$user["diamonds"]."|"; @@ -135,4 +136,4 @@ } $lbstring = substr($lbstring, 0, -1); echo $lbstring; -?> \ No newline at end of file +?>