Sfoglia il codice sorgente

领取探索奖励

cyzhao 2 giorni fa
parent
commit
c72e82666a
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Gameserver/App/process/PetProc.php

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

@@ -288,8 +288,8 @@ class PetProc {
         //$ts_n = intval($vo->output_count/$vo->output_ts * 100000) / 100000;       
         $ts_n = $vo->output_count*$hour/$vo->output_ts;
         $num = intval($tt * $ts_n);
-        if($num >= $vo->output_count* $ts_n){
-            $num = $vo->output_count* $ts_n;
+        if($num >= $vo->output_count* $hour){
+            $num = $vo->output_count* $hour;
         }
         $goodsStr = $vo->mo()->reward_fixed . ',' . $num;
         StoreProc::AddMultiItemInStore($goodsStr);