轩辕宝镜挑战次数bug修改
parent
65ff601bfc
commit
a25e17fa7f
|
|
@ -337,9 +337,10 @@ function this:OnShow(...)
|
||||||
this:RefreshTimes()
|
this:RefreshTimes()
|
||||||
local buyTimeId = XuanYuanMirrorManager.buyTimeId
|
local buyTimeId = XuanYuanMirrorManager.buyTimeId
|
||||||
storeData = ConfigManager.GetConfigDataByDoubleKey(ConfigName.StoreConfig, "StoreId", 7, "Limit", buyTimeId)
|
storeData = ConfigManager.GetConfigDataByDoubleKey(ConfigName.StoreConfig, "StoreId", 7, "Limit", buyTimeId)
|
||||||
|
local usedTimes=PrivilegeManager.GetPrivilegeUsedTimes(buyTimeId)
|
||||||
|
local privilegeTime=PrivilegeManager.GetPrivilegeNumber(buyTimeId)
|
||||||
--商店表数据
|
--商店表数据
|
||||||
local buyTimes = (PrivilegeManager.GetPrivilegeUsedTimes(buyTimeId) + 1) > PrivilegeManager.GetPrivilegeNumber(buyTimeId)
|
local buyTimes = usedTimes>= privilegeTime and privilegeTime or usedTimes+1
|
||||||
and PrivilegeManager.GetPrivilegeNumber(buyTimeId) or (PrivilegeManager.GetPrivilegeUsedTimes(buyTimeId) + 1)
|
|
||||||
costNum = storeData.Cost[2][buyTimes]
|
costNum = storeData.Cost[2][buyTimes]
|
||||||
this:SwitchView(args[1])
|
this:SwitchView(args[1])
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ local GlobalActivity = ConfigManager.GetConfig(ConfigName.GlobalActivity)
|
||||||
local heroConfig = ConfigManager.GetConfig(ConfigName.HeroConfig)
|
local heroConfig = ConfigManager.GetConfig(ConfigName.HeroConfig)
|
||||||
local artResConfig = ConfigManager.GetConfig(ConfigName.ArtResourcesConfig)
|
local artResConfig = ConfigManager.GetConfig(ConfigName.ArtResourcesConfig)
|
||||||
local prestigeConfig=ConfigManager.GetConfig(ConfigName.PrestigeConfig)
|
local prestigeConfig=ConfigManager.GetConfig(ConfigName.PrestigeConfig)
|
||||||
this.curLevel = 0--社稷大典的等级
|
-- this.curLevel = 0--社稷大典的等级
|
||||||
this.curActivityType = 0
|
this.curActivityType = 0
|
||||||
this.OpenUIList = {}
|
this.OpenUIList = {}
|
||||||
this.selectIndex = {dataType = 0,goodsId = {}}
|
this.selectIndex = {dataType = 0,goodsId = {}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue