瀏覽代碼

成就表跟以前代码不是一套了,注释掉成就代码

cyzhao 1 年之前
父節點
當前提交
7cc7986163
共有 1 個文件被更改,包括 20 次插入20 次删除
  1. 20 20
      Gameserver/App/process/TaskProc.php

+ 20 - 20
Gameserver/App/process/TaskProc.php

@@ -79,26 +79,26 @@ class TaskProc {
      * 初始化成就信息
      */
     public static function initAchieveData() {
-        $dic = GameConfig::achieve_new();
-        if($dic == null){
-            return;
-        }
-        
-        $achieveDic = ctx()->task->achieveDic;
-        if(count((array)$achieveDic) > 0){
-            return;
-        }
-        
-        foreach ($dic as $key => $value) {
-            $item = new Ins_Achieve();
-            $typeId = $value->typeId;
-            $item->typeId = $typeId;
-            $item->cmd = $value->cmd;
-            //$item->max = explode(',', $value->condition)[0];
-            $item->max = $value->num;
-            $achieveDic->$typeId = $item;
-        }
-        ctx()->task->achieveDic = $achieveDic;
+//        $dic = GameConfig::achieve_new();
+//        if($dic == null){
+//            return;
+//        }
+//        
+//        $achieveDic = ctx()->task->achieveDic;
+//        if(count((array)$achieveDic) > 0){
+//            return;
+//        }
+//        
+//        foreach ($dic as $key => $value) {
+//            $item = new Ins_Achieve();
+//            $typeId = $value->typeId;
+//            $item->typeId = $typeId;
+//            $item->cmd = $value->cmd;
+//            //$item->max = explode(',', $value->condition)[0];
+//            $item->max = $value->num;
+//            $achieveDic->$typeId = $item;
+//        }
+//        ctx()->task->achieveDic = $achieveDic;
     }
     
     //检测成就条件