【ID1010392】

点石成金基础收益随着玩家等级提升
dev_chengFeng
jiaoyangna 2021-10-08 11:51:37 +08:00
parent 8de35750c6
commit e019ef8f22
1 changed files with 4 additions and 1 deletions

View File

@ -58,6 +58,8 @@ end
function this.SetPanel()
this.TimeCountDown(ShopManager.CountShopRefreshLeftTime(SHOP_TYPE.BUYCOIN_SHOP))
local levelConfig = ConfigManager.GetConfigDataByKey(ConfigName.PlayerLevelConfig,"PlayerLv",PlayerManager.level)
local levelNums = {levelConfig.GoldExtraNum1,levelConfig.GoldExtraNum2,levelConfig.GoldExtraNum3}
for i = 1, #panels do
local o=panels[i]
local coinNum=Util.GetGameObject(o,"Coin/Num"):GetComponent("Text")
@ -75,7 +77,8 @@ function this.SetPanel()
local item,num,oldNum = ShopManager.CalculateCostCountByShopId(SHOP_TYPE.BUYCOIN_SHOP, storeData.Id, 1) --商品ID 价格数 旧价格
local vipFactor = PrivilegeManager.GetPrivilegeNumber(PRIVILEGE_TYPE.BuyGoldAdd)
coinNum.text= math.floor(storeData.Goods[1][2] * vipFactor)
coinNum.text= math.floor((storeData.Goods[1][2] + levelNums[i]) * vipFactor)
btnIcon.sprite=this.mainPanel.spLoader:LoadSprite(GetResourcePath(itemConfig[item].ResourceID))
btnText.text=string.format(Language[11655],num)
btnIcon.gameObject:SetActive(num~=0)