typeId); my_Assert(null != $mo, ErrCode::err_const_no); return $mo; } public function petLevelMo() { $mo = GameConfig::pet_levelupgrade_getItem($this->mo()->rarity, $this->qual,$this->level); my_Assert(null != $mo, ErrCode::err_const_no); return $mo; } /* * 装备最大等级 */ public function Pet_MaxLevel() { $rarity = $this->mo()->rarity; $qual = $this->qual; $dic = GameConfig::pet_levelupgrade(); $max = 0; foreach ($dic as $str => $mo) { if($mo->rarity == $rarity && $mo->qual == $qual){ if($mo->level > $max){ $max = $mo->level; } } } return $max; } }