1
This commit is contained in:
parent
c212d25976
commit
9fddcf166c
@ -302,7 +302,6 @@ class QuestController{
|
||||
}
|
||||
|
||||
//发奖励
|
||||
$reward = $q['gold'];
|
||||
if ($quest_type == 0) {
|
||||
$t = $this->getTaskReward($quest_id);
|
||||
if (!$t) {
|
||||
@ -319,6 +318,7 @@ class QuestController{
|
||||
for ($i = 0; $i < count($weight_array); $i++) {
|
||||
$weight_sum += $weight_array[$i][0];
|
||||
}
|
||||
|
||||
$random = Rand(0, $weight_sum);
|
||||
$weight = 0;
|
||||
for ($i = 0; $i < count($weight_array); $i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user