云游值恢复问题修改

dev_chengFeng
yuanshuai 2020-10-19 23:49:21 +08:00 committed by gaoxin
parent aa9c366242
commit a3c461aff9
2 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
AutoRecoverManager = {}
local this = AutoRecoverManager
local GameSetting = ConfigManager.GetConfigData(ConfigName.GameSetting, 1)
--- 注册物品及其获取恢复时间的方法
local _TimeCheckFunc = {
[UpViewRechargeType.EliteCarbonTicket] = function()
@ -73,12 +73,12 @@ local _TimeCheckFunc = {
local maxCount = PrivilegeManager.GetPrivilegeNumber(39)
if curCount < maxCount then
local nextFreshTime = BagManager.bagDatas[UpViewRechargeType.YunYouVle].nextFlushTime
local remationTime = nextFreshTime - PlayerManager.serverTime -- 下一次刷新的时间
if remationTime > 0 then
return remationTime
local remationTime = nextFreshTime - PlayerManager.serverTime -- 下一次刷新的时间
if remationTime<=-1 then
local timeInterval= GameSetting.ItemAdd[7][3]
remationTime=timeInterval-(math.abs(remationTime)%timeInterval)
end
-- 需要刷新数量
return -2
return remationTime
else -- 数量已满返回 -1
return -1
end
@ -88,7 +88,7 @@ local _TimeCheckFunc = {
--
local GameSetting = ConfigManager.GetConfigData(ConfigName.GameSetting, 1)
function this.Initialize()
Timer.New(function()
for _, data in ipairs(GameSetting.ItemAdd) do

View File

@ -309,7 +309,7 @@ function this.EventTrigger(_data)
elseif _data.pathType==2 then --双倍节点
PopupTipPanel.ShowTip("奖励翻倍!")
elseif _data.pathType==3 then --额外骰子节点
PopupTipPanel.ShowTip("骰子x2")
PopupTipPanel.ShowTip("本轮获得疾如闪电效果")
saiNum=2
elseif _data.pathType==4 then --东海寻仙节点
targetBtn=this.shopBtn