This commit is contained in:
wangwei01 2019-05-10 14:55:15 +08:00
parent 6235c6031c
commit d7b3e76489
2 changed files with 7 additions and 7 deletions

View File

@ -25,8 +25,8 @@ define('QUEST_SUM_FIGHT', 72003);
define('QUEST_SUM_SUPPLY', 72004);
define('QUEST_SUM_EQUIPMAX', 72005);
define('QUEST_SUM_TEAM', 72006);
define('QUEST_SUM_TEAMWIM', 72007);
define('QUEST_SUM_FRITEAMWIN', 72008);
define('QUEST_SUM_WIM', 72007);
define('QUEST_SUM_TEAMWIN', 72008);
define('QUEST_SUM_ALIVE', 72009);
define('QUEST_SUM_HARM', 72010);
define('QUEST_SUM_KILL', 72011);

View File

@ -202,17 +202,17 @@ class RoleController{
$quest->triggerQuest(QUEST_SUM_RIFLEKILL, 2, $rifle_kill, $account_id);
$quest->triggerQuest(QUEST_SUM_PISTOLKILL, 2, $pistol_kill, $account_id);
$quest->triggerQuest(QUEST_SUM_SUBMACKILL, 2, $submachine_kill, $account_id);
if ($team_status != 0 && $rank <= 5) {
if ($team_status == 1 && $rank <= 5) {
$quest->triggerQuest(QUEST_DAY_RANK, 1, 1, $account_id);
}
if ($team_status == 1 && $rank == 1) {
$quest->triggerQuest(QUEST_SUM_TEAMWIM, 2, 1, $account_id);
if ($team_status == 0 && $rank == 1) {
$quest->triggerQuest(QUEST_SUM_WIM, 2, 1, $account_id);
}
if ($team_status == 2) {
if ($team_status == 1) {
$quest->triggerQuest(QUEST_DAY_TEAM, 1, 1, $account_id);
$quest->triggerQuest(QUEST_SUM_TEAM, 2, 1, $account_id);
if ($rank == 1) {
$quest->triggerQuest(QUEST_SUM_FRITEAMWIN, 2, 1, $account_id);
$quest->triggerQuest(QUEST_SUM_TEAMWIN, 2, 1, $account_id);
}
}
echo json_encode(array(