34 lines
647 B
PHP
34 lines
647 B
PHP
<?php
|
|
|
|
namespace mt;
|
|
|
|
use phpcommon;
|
|
|
|
class EquipUpgrade {
|
|
|
|
public static function get($id)
|
|
{
|
|
return array_key_exists($id, self::getMetaList()) ? self::getMetaList()[$id] : null;
|
|
}
|
|
|
|
public static function getOldEquipUp($id)
|
|
{
|
|
$meta = self::get($id);
|
|
return array(
|
|
'id' => $meta['id'],
|
|
'coin_num' => $meta['coin_num'],
|
|
);
|
|
}
|
|
|
|
protected static function getMetaList()
|
|
{
|
|
if (!self::$metaList) {
|
|
self::$metaList = getMetaTable('equipUpgrade@equipUpgrade.php');
|
|
}
|
|
return self::$metaList;
|
|
}
|
|
|
|
protected static $metaList;
|
|
|
|
}
|