Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sakujes toggle, download/like defaults changed. #1006

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 3 additions & 2 deletions incl/scores/getGJScores.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
$stars = 0;
$count = 0;
$xi = 0;
$sakujes = 1;
$lbstring = "";
$date = date("d-m");
if(empty($_POST["gameVersion"])){
Expand Down Expand Up @@ -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"]."|";
Expand All @@ -135,4 +136,4 @@
}
$lbstring = substr($lbstring, 0, -1);
echo $lbstring;
?>
?>