diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-05-21 16:03:08 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-05-21 16:03:08 -0700 |
commit | a81858ef82af7469e843e2e6a84ca220330003e3 (patch) | |
tree | 9a2e9b3fccdb1ad5964b18593d2214ed1def3904 /includes/datas.php | |
parent | 329cc1f9b6657ce580b3a297e39a7cd259a62537 (diff) | |
download | pathery-a81858ef82af7469e843e2e6a84ca220330003e3.tar.xz |
Some code cleanup; fixed a $mydomain missing.
Diffstat (limited to 'includes/datas.php')
-rw-r--r-- | includes/datas.php | 7 |
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; |