少年修仙传客户端代码仓库
client_linchunjie
2019-01-11 b98e30e1cfbe706c82a929b5826f4a22b09247db
5649 【1.5】【前端】神兵界面优化
2个文件已修改
9 ■■■■■ 已修改文件
System/Role/EquipShowSwitch.cs 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Role/MagicianModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Role/EquipShowSwitch.cs
@@ -73,7 +73,7 @@
                && level != requireLevel)
            {
                var _stage = 0;
                if (godWeaponModel.TryGetGodWeaponStage(type, requireLevel, out _stage))
                if (godWeaponModel.TryGetGodWeaponStage(type, level, out _stage))
                {
                    var index = GetGodWeaponEquipShowIndex(type, _stage);
                    value = (uint)MathUtility.SetBitValue((int)value, index, false);
@@ -85,7 +85,10 @@
                value = (uint)MathUtility.SetBitValue((int)value, index, isOn);
            }
            SendPackage(value);
            if (value != PlayerDatas.Instance.baseData.equipShowSwitch)
            {
                SendPackage(value);
            }
        }
        public static void SendPackage(uint value)
System/Role/MagicianModel.cs
@@ -841,7 +841,7 @@
                    if (stage != 0 && stage <= 3)
                    {
                        var index = EquipShowSwitch.GetGodWeaponEquipShowIndex(type, stage);
                        value = (uint)MathUtility.SetBitValue((int)value, index, false);
                        value = (uint)MathUtility.SetBitValue((int)value, index, true);
                    }
                }
            }