少年修仙传客户端代码仓库
client_Lhy
2019-06-24 92e6e365b665ec939f75c8ed4083f2affeed36be
4230 【BUG】【2.0】显示可购买20个,实际只能买5个
1个文件已修改
8 ■■■■ 已修改文件
System/Store/BuyItemController.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Store/BuyItemController.cs
@@ -109,7 +109,7 @@
    public void SetBuyCount(int goodId, int count)
    {
        var countLimit = GetBuyCountLimit(goodId, count);
        var countLimit = GetBuyCountLimit(goodId, PlayerDatas.Instance.baseData.VIPLv);
        if (countLimit == -1)
        {
            wannaBuyCount.value = Mathf.Clamp(count, 1, 999);
@@ -166,7 +166,7 @@
            return -1;
        }
        var isVipLimitGood = config != null && config.VIPLV.Length > 1 && config.VIPLV[0] > 0;
        var isVipLimitGood = config != null && config.VIPLV.Length > 1;
        var canBuy = 0;
        if (isVipLimitGood)
        {
@@ -178,8 +178,8 @@
                    index = i;
                    break;
                }
            }
            }
            if (index != -1)
            {
                canBuy = config.PurchaseNumber[index];