summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/datas.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/datas.php b/includes/datas.php
index 2985853..8a50cbb 100644
--- a/includes/datas.php
+++ b/includes/datas.php
@@ -248,6 +248,8 @@ function applyCareerMazesAchievements($userID) {
function getCompletedChallenges($userID, $mapID, $solution, $moves, $paths) {
//mapID 5 is the tutorial, and is treated specially
+ //TODO: What if they're not logged in?
+
//TODO: Fix / depreciate this. Re-adapt tutorial
// Temporary Hack to complete the tutorial...
// if($mapID <= 10) {
@@ -281,8 +283,7 @@ function getCompletedChallenges($userID, $mapID, $solution, $moves, $paths) {
*/
function onCompletedTutorial($userID) {
//have they previously completed the tutorial?
- if(hasCompletedTutorial($userID))
- return false;
+ if (hasCompletedTutorial($userID)) return false;
// -------- This is the first time they've completed the tutorial!
$sql = "INSERT INTO `achievements`
@@ -510,6 +511,8 @@ function applyAchievements($userID, $aType) {
//Is there a next level for this?
$aNextLevel = $aLevel + 1;
if (!isset($aArray[$aNextLevel])) return false;
+ //Returns an error notice?
+ //TODO: !!
list($required, $unlockType, $unlockValue, $unlockName, $unlockSubtype) = $aArray[$aNextLevel];
if ($amount < $required) return false;