|
@@ -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;
|
|
|
|