少年修仙传客户端代码仓库
client_linchunjie
2019-01-11 5a6042df83e6d48646c5371dcfe07b1d00b105d5
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
1个文件已修改
23 ■■■■■ 已修改文件
System/OpenServerActivity/WishingPoolModel.cs 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/WishingPoolModel.cs
@@ -36,8 +36,8 @@
        public void OnPlayerLoginOk()
        {
            GlobalTimeEvent.Instance.secondEvent += UpdateSecond;
            UpdateFreeWishRedpoint();
            UpdateRedpoint();
            UpdateFreeWishRedpoint();
        }
        public override void UnInit()
@@ -73,8 +73,8 @@
        {
            if (type == Operation.WishingWellInfo && state == 0)
            {
                UpdateFreeWishRedpoint();
                UpdateRedpoint();
                UpdateFreeWishRedpoint();
                if (onStateUpate != null)
                {
                    onStateUpate((int)OpenServerActivityCenter.OSActivityType.WishingPool);
@@ -97,8 +97,9 @@
        {
            if (type == Operation.WishingWellInfo && state == 0)
            {
                UpdateFreeWishRedpoint();
                UpdateRedpoint();
                UpdateFreeWishRedpoint();
                if (onStateUpate != null)
                {
                    onStateUpate((int)OpenServerActivityCenter.OSActivityType.WishingPool);
@@ -181,7 +182,6 @@
            if(!isCool)
            {
                UpdateFreeWishRedpoint();
                UpdateRedpoint();
            }
        }
@@ -241,9 +241,9 @@
                    SetWishingAwardData(i, wellItem);
                }
            }
            UpdateFreeWishRedpoint();
            UpdateRedpoint();
            if(UpdateWishAwardEvent != null)
            UpdateFreeWishRedpoint();
            if (UpdateWishAwardEvent != null)
            {
                UpdateWishAwardEvent();
            }
@@ -273,6 +273,7 @@
                }
            }
            UpdateRedpoint();
            UpdateFreeWishRedpoint();
        }
        public void SetWishingPoolData(int index, WishingWellItem wellItem)
@@ -412,6 +413,14 @@
        {
            freeWishRedpoint.state = RedPointState.None;
            if (!IsOpen) return;
            for (int i = 0; i < wishPointlist.Count; i++)
            {
                var wishPoint = wishPointlist[i];
                if(wishPoint.state != RedPointState.None)
                {
                    return;
                }
            }
            int second = 0;
            bool isCool = TryGetFreeWishCoolTime(out second);
@@ -429,7 +438,7 @@
                wishPoint.state = RedPointState.None;
            }
            if (!IsOpen || freeWishRedpoint.state != RedPointState.None) return;
            if (!IsOpen) return;
            for (int i = 0; i < wishPointlist.Count; i++)
            {