Преглед на файлове

探索区域产出字段名字修改

cyzhao преди 1 седмица
родител
ревизия
34b1c7a9b6
променени са 2 файла, в които са добавени 8 реда и са изтрити 8 реда
  1. 1 1
      Gameserver/App/model/User/Ins_ExploreArea.php
  2. 7 7
      Gameserver/App/process/PetProc.php

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

@@ -39,7 +39,7 @@ class Ins_ExploreArea extends Object_ext{
      * 产出
      * @var type
      */
-    public $output_num = 0;
+    public $output_count = 0;
 
     /**
      * 时间

+ 7 - 7
Gameserver/App/process/PetProc.php

@@ -123,7 +123,7 @@ class PetProc {
         if (count($vo->explorePetList) == 0) {
             $vo->startTs = 0;
             $vo->endTs = 0;
-            $vo->output_num = 0;
+            $vo->output_count = 0;
             $vo->output_ts = 0;
         } else {
             if ($vo->startTs == 0) {
@@ -133,7 +133,7 @@ class PetProc {
             $ts = self::GetAreaOutPutInfo($vo, 2);
             $num = self::GetAreaOutPutInfo($vo, 1);
             $vo->endTs = $vo->startTs + $ts;
-            $vo->output_num = $num;
+            $vo->output_count = $num;
             $vo->output_ts = $vo->endTs - $vo->startTs;
         }
 
@@ -206,7 +206,7 @@ class PetProc {
         if (count($petUidList) == 0) {
             $ins_ExploreArea->startTs = 0;
             $ins_ExploreArea->endTs = 0;
-            $ins_ExploreArea->output_num = 0;
+            $ins_ExploreArea->output_count = 0;
             $ins_ExploreArea->output_ts = 0;
         } else {
             if ($ins_ExploreArea->startTs == 0) {
@@ -216,7 +216,7 @@ class PetProc {
             $ts = self::GetAreaOutPutInfo($ins_ExploreArea, 2);
             $num = self::GetAreaOutPutInfo($ins_ExploreArea, 1);
             $ins_ExploreArea->endTs = $ins_ExploreArea->startTs + $ts;
-            $ins_ExploreArea->output_num = $num;
+            $ins_ExploreArea->output_count = $num;
             $ins_ExploreArea->output_ts = $ins_ExploreArea->endTs - $ins_ExploreArea->startTs;
         }
    
@@ -253,7 +253,7 @@ class PetProc {
         $vo->explorePetList = array();
         $vo->startTs = 0;
         $vo->endTs = 0;
-        $vo->output_num = 0;
+        $vo->output_count = 0;
         $vo->output_ts = 0;
 
         ctx()->store->exploreArea->$areaId = $vo;
@@ -279,7 +279,7 @@ class PetProc {
             $tt = $vo->endTs - $vo->startTs;
         }
 
-        $ts_n = $vo->output_ts / $vo->output_num;
+        $ts_n = $vo->output_ts / $vo->output_count;
         $num = intval($tt *= $ts_n);
         $goodsStr = $vo->mo()->reward_fixed . ',' . $num;
         StoreProc::AddMultiItemInStore($goodsStr);
@@ -293,7 +293,7 @@ class PetProc {
         //$vo->explorePetList = array();             
         $vo->startTs = 0;
         $vo->endTs = 0;
-        $vo->output_num = 0;
+        $vo->output_count = 0;
         $vo->output_ts = 0;
 
         ctx()->store->exploreArea->$areaId = $vo;