|
|
@@ -105,6 +105,26 @@ local function HonorJourneyTask_GetTaskDB(human)
|
|
|
HonorJourneyTask_CreateDB(human)
|
|
|
end
|
|
|
|
|
|
+ local tTaskPointPrize = human.db.HonorJourney and human.db.HonorJourney.TaskPointPrize
|
|
|
+
|
|
|
+ if tTaskPointPrize and #tTaskPointPrize < #HonorJourneyExcel.Reward then
|
|
|
+ -- local nNowPoint = HonorJourney_GetTaskPoint(human)
|
|
|
+ local nNowPoint = human.db.HonorJourney and human.db.HonorJourney.nPoint or 0
|
|
|
+
|
|
|
+ for i=#tTaskPointPrize+1, #HonorJourneyExcel.Reward do
|
|
|
+ if not tTaskPointPrize[i] then
|
|
|
+ tTaskPointPrize[i] = CommonDefine.COMMON_PRIZE_STATE_NOGET
|
|
|
+ local boxCfg = HonorJourneyExcel.Reward[i]
|
|
|
+ if boxCfg and nNowPoint >= boxCfg.needcnt then
|
|
|
+ tTaskPointPrize[i] = CommonDefine.COMMON_PRIZE_STATE_CANGET
|
|
|
+ end
|
|
|
+ else
|
|
|
+ print("[HonorJourneyTask_CreateDB] 配置了重复的奖励ID nID = "..i)
|
|
|
+ end
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
+
|
|
|
return human.db.HonorJourney
|
|
|
end
|
|
|
|