Quellcode durchsuchen

领取探索奖励bug修复

cyzhao vor 4 Tagen
Ursprung
Commit
b499d84201
1 geänderte Dateien mit 4 neuen und 6 gelöschten Zeilen
  1. 4 6
      Gameserver/App/process/PetProc.php

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

@@ -285,22 +285,20 @@ class PetProc {
         }
 
         $ts_n = $vo->output_ts / $vo->output_count;
-        $num = intval($tt *= $ts_n);
+        $num = intval($tt / $ts_n);
         $goodsStr = $vo->mo()->reward_fixed . ',' . $num;
         StoreProc::AddMultiItemInStore($goodsStr);
 
         $reward = explode(',', $vo->mo()->reward_extra);
         $randNum = rand(1, $reward[2]);
         if ($randNum <= $reward[2]) {
-            StoreProc::AddMultiItemInStore($reward[0] . ',' . $reward[1]);
+            StoreProc::AddMultiItemInStore($reward[0] . ',' . $randNum);
         }
-
-        //$vo->explorePetList = array();             
+                
         $vo->startTs = 0;
         $vo->endTs = 0;
         $vo->output_count = 0;
-        $vo->output_ts = 0;
-        $vo->explorePetList = array();
+        $vo->output_ts = 0;        
 
         ctx()->store->exploreArea->$areaId = $vo;