|
|
@@ -332,6 +332,11 @@ function CG_DAILYTASK_GET_HUOYUEBOX(human,boxID)
|
|
|
msgRet.boxID = boxId
|
|
|
msgRet.double = double and 1 or 0
|
|
|
Msg.send(msgRet,human.fd)
|
|
|
+
|
|
|
+ if boxId == #boxConfig then
|
|
|
+ CommonActMoneyTree = CommonActMoneyTree or require("absAct.CommonActMoneyTree")
|
|
|
+ CommonActMoneyTree.CompleteHuoYueTask(human)
|
|
|
+ end
|
|
|
end
|
|
|
end
|
|
|
|
|
|
@@ -376,12 +381,12 @@ function onDailyTaskHuoYue(human,sum)
|
|
|
|
|
|
YunYingLogic.onCallBack(human, "onDailyTask",sum)
|
|
|
|
|
|
- local finallyIdx = #DailyTaskExcel.huoYueBox
|
|
|
- local finallyCfg = DailyTaskExcel.huoYueBox[finallyIdx]
|
|
|
- if human.db.dailyTask.nowHuoYue >= finallyCfg.needHuoYue then
|
|
|
- CommonActMoneyTree = CommonActMoneyTree or require("absAct.CommonActMoneyTree")
|
|
|
- CommonActMoneyTree.CompleteHuoYueTask(human)
|
|
|
- end
|
|
|
+ -- local finallyIdx = #DailyTaskExcel.huoYueBox
|
|
|
+ -- local finallyCfg = DailyTaskExcel.huoYueBox[finallyIdx]
|
|
|
+ -- if human.db.dailyTask.nowHuoYue >= finallyCfg.needHuoYue then
|
|
|
+ -- CommonActMoneyTree = CommonActMoneyTree or require("absAct.CommonActMoneyTree")
|
|
|
+ -- CommonActMoneyTree.CompleteHuoYueTask(human)
|
|
|
+ -- end
|
|
|
end
|
|
|
|
|
|
function onLogin(human)
|