Ver Fonte

合成mo()修改

cyzhao há 1 ano atrás
pai
commit
0b1b653cb5
1 ficheiros alterados com 6 adições e 4 exclusões
  1. 6 4
      Gameserver/App/process/StoreProc.php

+ 6 - 4
Gameserver/App/process/StoreProc.php

@@ -246,8 +246,9 @@ class StoreProc {
             $posId = 0;
             $posId = 0;
             if(StlUtil::dictHasProperty($user->store->gemStore, $gemUidList[0])){
             if(StlUtil::dictHasProperty($user->store->gemStore, $gemUidList[0])){
                 $ins_gem = $user->store->gemStore->$firstGemUId;
                 $ins_gem = $user->store->gemStore->$firstGemUId;
-                $qual = $ins_gem->mo()->qual;
-                $posId = $ins_gem->mo()->position;
+                $mo = GameConfig::gem_getItem($ins_gem->typeId);
+                $qual = $mo->qual;
+                $posId = $mo->position;
             }    
             }    
             //查找要合成的宝石配置信息
             //查找要合成的宝石配置信息
             $gemConf = self::GemComposeSynthesis($qual, $posId);
             $gemConf = self::GemComposeSynthesis($qual, $posId);
@@ -257,7 +258,8 @@ class StoreProc {
             $composeNum = $synthesisList[2];             
             $composeNum = $synthesisList[2];             
                                       
                                       
             foreach ($composeArr as $val) {
             foreach ($composeArr as $val) {
-                if($val->mo()->qual == $composeQual && $val->mo()->position == $composePosition){                        
+                $mo = GameConfig::gem_getItem($val->typeId);
+                if($mo->qual == $composeQual && $mo->position == $composePosition){                        
                     $gemUidList[] = $val->uid;
                     $gemUidList[] = $val->uid;
                 }
                 }
             }
             }
@@ -315,7 +317,7 @@ class StoreProc {
      * @return bool
      * @return bool
      */
      */
     private static function GemIsCanCompose($uid) {
     private static function GemIsCanCompose($uid) {
-        $Ins_gemItem = ctx()->store->gemStore->$uid;
+        $Ins_gemItem = new Ins_Equip(ctx()->store->gemStore->$uid);
         
         
         $equipGemDic = ctx()->store->gemEquip;
         $equipGemDic = ctx()->store->gemEquip;
         $equipPag = ctx()->store->equipPag;
         $equipPag = ctx()->store->equipPag;