Added Inventory interfaces and types, updated long array() to []

This commit is contained in:
Shoghi Cervantes
2014-05-22 18:59:16 +02:00
parent 0be679c9d5
commit 6cbd39de9b
102 changed files with 637 additions and 334 deletions

View File

@ -33,7 +33,7 @@ abstract class Achievement{
public static $list = array(
/*"openInventory" => array(
"name" => "Taking Inventory",
"requires" => array(),
"requires" => [],
),*/
"mineWood" => array(
"name" => "Getting Wood",
@ -118,7 +118,7 @@ abstract class Achievement{
return false;
}
public static function add($achievementId, $achievementName, array $requires = array()){
public static function add($achievementId, $achievementName, array $requires = []){
if(!isset(Achievement::$list[$achievementId])){
Achievement::$list[$achievementId] = array(
"name" => $achievementName,