轩辕宝镜挑战次数bug修改

yuanshuai 2022-12-27 18:24:45 +08:00
parent 65ff601bfc
commit a25e17fa7f
2 changed files with 4 additions and 3 deletions

View File

@ -337,9 +337,10 @@ function this:OnShow(...)
this:RefreshTimes()
local buyTimeId = XuanYuanMirrorManager.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)
and PrivilegeManager.GetPrivilegeNumber(buyTimeId) or (PrivilegeManager.GetPrivilegeUsedTimes(buyTimeId) + 1)
local buyTimes = usedTimes>= privilegeTime and privilegeTime or usedTimes+1
costNum = storeData.Cost[2][buyTimes]
this:SwitchView(args[1])
end

View File

@ -9,7 +9,7 @@ local GlobalActivity = ConfigManager.GetConfig(ConfigName.GlobalActivity)
local heroConfig = ConfigManager.GetConfig(ConfigName.HeroConfig)
local artResConfig = ConfigManager.GetConfig(ConfigName.ArtResourcesConfig)
local prestigeConfig=ConfigManager.GetConfig(ConfigName.PrestigeConfig)
this.curLevel = 0--社稷大典的等级
-- this.curLevel = 0--社稷大典的等级
this.curActivityType = 0
this.OpenUIList = {}
this.selectIndex = {dataType = 0,goodsId = {}}