少年修仙传客户端代码仓库
client_linchunjie
2019-01-15 cc2eb9d9ab11fc1834bf44ab1427f21822bd7896
5649 【1.5】【前端】打坐时不显示攻击神兵特效
1个文件已修改
52 ■■■■■ 已修改文件
UI/Common/UI3DModelExhibition.cs 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI/Common/UI3DModelExhibition.cs
@@ -371,7 +371,57 @@
        public void ShowSitDownPlayer(RawImage _rawImage, int _job)
        {
            ShowPlayer(_rawImage, _job);
            var clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
            var flashClothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
            var clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
            var flashClothesId = flashClothes == null ? 0 : flashClothes.itemInfo.ItemID;
            var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
            var flashWeapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
            var weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
            var flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemInfo.ItemID;
            var wings = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWing);
            var wingsId = wings == null ? 0 : (int)wings.itemInfo.ItemID;
            var flahsSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
            var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
            var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
            var flashSecondaryId = flahsSecondary == null ? 0 : flahsSecondary.itemInfo.ItemID;
            int suitLevel = 0;
            if (clothes != null)
            {
                if (clothes.itemInfo.IsSuite == 1)
                {
                    if (clothes.GetUseDataModel(30) != null && clothes.GetUseDataModel(30)[0] != 0)
                    {
                        suitLevel = clothes.GetUseDataModel(30)[0];
                    }
                }
            }
            Dictionary<int, int> dict = null;
            EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.baseData.equipShowSwitch, out dict);
            if (dict != null && dict.ContainsKey(2))
            {
                dict.Remove(2);
            }
            var data = new UI3DPlayerExhibitionData
            {
                job = _job,
                fashionClothesId = flashClothesId,
                fashionWeaponId = flashWeaponId,
                fashionSecondaryId = flashSecondaryId,
                clothesId = clothesId,
                suitLevel = suitLevel,
                weaponId = weaponId,
                wingsId = wingsId,
                secondaryId = secondaryId,
                isDialogue = false,
                godWeapons = dict
            };
            ShowOtherPlayer(_rawImage, data);
            if (playerModel != null)
            {
                playerModel.SitDown();