| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- local AbsActExcel = require("excel.absAct")
- local Lang = require("common.Lang")
- local ObjHuman = require("core.ObjHuman")
- local Msg = require("core.Msg")
- local Broadcast = require("broadcast.Broadcast")
- local Grid = require("bag.Grid")
- local BagLogic = require("bag.BagLogic")
- local ItemDefine = require("bag.ItemDefine")
- local BuyLogic = require("topup.BuyLogic")
- local AbsActDefine = require("absAct.AbsActDefine")
- local AbsActLogic = require("absAct.AbsActLogic")
- local Log = require("common.Log")
- local YunYingLogic = require("yunying.YunYingLogic")
- ABS_ACT_ID = 9001
- --
- function initAfterHot()
-
- end
- --
- function isActive(human, YYInfo, funcConfig)
- return not isOpen(human, YYInfo, funcConfig)
- end
- --
- function isOpen(human, YYInfo, funcConfig)
- return AbsActLogic.isStarted(human, funcConfig.funcID)
- end
- --
- function isRed(human, YYInfo, funcConfig)
- return false
- end
- --
- function getLeftTime(human, YInfo, funcConfig)
- local ret, endTime, startTime = AbsActLogic.isStarted(human, ABS_ACT_ID)
- if ret == true then
- return endTime - os.time()
- else
- return 0
- end
- end
- function getNewHeroID(human)
- local startedFlag, endTime, startTime = AbsActLogic.isStarted(human, ABS_ACT_ID)
- if not startedFlag then return 0 end
- local absActConfig = AbsActExcel.absActivity[ABS_ACT_ID]
- if not absActConfig then return 0 end
- return absActConfig.icon
- end
- function getAndSendMsg(human, id, actId)
- local now = os.time()
- local startedFlag, endTime, startTime = AbsActLogic.isStarted(human, id)
- if not startedFlag then return end
- local absActConfig = AbsActExcel.absActivity[id]
- if not absActConfig then return end
- local absAct = human.db.absAct[id]
- if not absAct then return end
- local msgRet = Msg.gc.GC_ABS_NEWHERO
- msgRet.id = absActConfig.icon
- msgRet.startTime = startTime
- msgRet.endTime = endTime
- Msg.send(msgRet, human.fd)
- end
- function giftBuy(human, id, premiumID)
-
- end
|