30 lines
503 B
PHP
30 lines
503 B
PHP
<?php
|
|
|
|
|
|
namespace mt;
|
|
|
|
|
|
class BattlePotion
|
|
{
|
|
public static function find($id){
|
|
foreach (self::getMetaList() as $meta){
|
|
if ($meta['potionId'] == $id){
|
|
return $meta;
|
|
}
|
|
}
|
|
return array();
|
|
}
|
|
|
|
|
|
|
|
protected static function getMetaList()
|
|
{
|
|
if (!self::$metaList) {
|
|
self::$metaList = getMetaTable('battlePotion@battlePotion.php');
|
|
}
|
|
return self::$metaList;
|
|
}
|
|
|
|
protected static $metaList;
|
|
|
|
} |