Bladeren bron

成就表不存在了以前的代码出现问题

cyzhao 1 jaar geleden
bovenliggende
commit
b47e9a45f9
2 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  1. 1 1
      Gameserver/App/model/User/Ins_Achieve.php
  2. 4 3
      Gameserver/App/process/TaskProc.php

+ 1 - 1
Gameserver/App/model/User/Ins_Achieve.php

@@ -48,6 +48,6 @@ class Ins_Achieve extends Object_ext{
     }
     
     public function getAchieveMo() {
-        return GameConfig::achieve_getItem($this->typeId);
+        return GameConfig::achieve_new_getItem($this->typeId);
     }
 }

+ 4 - 3
Gameserver/App/process/TaskProc.php

@@ -94,7 +94,8 @@ class TaskProc {
             $typeId = $value->typeId;
             $item->typeId = $typeId;
             $item->cmd = $value->cmd;
-            $item->max = explode(',', $value->condition)[0];
+            //$item->max = explode(',', $value->condition)[0];
+            $item->max = $value->num;
             $achieveDic->$typeId = $item;
         }
         ctx()->task->achieveDic = $achieveDic;
@@ -140,14 +141,14 @@ class TaskProc {
     //单件装备等级达到X级
     static function accumulateEquiplevel_one($lv) {  
         $taskEventArg = new Ins_TaskEventArgs(Enum_AchieveType::equiplevel_one, Enum_PropelType::set,$lv, array());
-        self::CheckAchieveConditions($taskEventArg);                
+        //self::CheckAchieveConditions($taskEventArg);                
     }
     
     
     //累计消耗X钻石
     static function accumulateCostCash($num) {  
         $taskEventArg = new Ins_TaskEventArgs(Enum_AchieveType::accumulateCostCash, Enum_PropelType::add,$num, array());
-        self::CheckAchieveConditions($taskEventArg);                           
+        //self::CheckAchieveConditions($taskEventArg);                           
     }