602 坐骑优化-客户端 修复bug
1.修复解锁坐骑时没装备坐骑时,我方形象显示了已经装备状态的的bug
2.修复战力和属性显示
| | |
| | | attrDic.TryGetValue(attrID, out long value);
|
| | | specialAttrDic.TryGetValue(attrID, out long specialValue);
|
| | | skinAttrDic.TryGetValue(attrID, out long skinValue);
|
| | |
|
| | | GetNowRiderAttrInfo(out int nowRiderAttrID, out long nowRiderValue, out PlayerPropertyConfig playerPropertyConfig);
|
| | | if (nowRiderAttrID == attrID)
|
| | | {
|
| | | return value + specialValue + skinValue + nowRiderValue;
|
| | | }
|
| | | else
|
| | | {
|
| | | return value + specialValue + skinValue;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public int GetAttrPer(int attrID)
|
| | |
| | | specialAttrDic.TryGetValue(pertype, out long specialValue);
|
| | | skinAttrDic.TryGetValue(pertype, out long skinValue);
|
| | |
|
| | | GetNowRiderAttrInfo(out int nowRiderAttrID, out long nowRiderValue, out PlayerPropertyConfig playerPropertyConfig);
|
| | | if (nowRiderAttrID == attrID)
|
| | | {
|
| | | return (int)(value + specialValue + skinValue + nowRiderValue);
|
| | | }
|
| | | else
|
| | | {
|
| | | return (int)(value + specialValue + skinValue);
|
| | | }
|
| | | }
|
| | |
|
| | | return 0;
|
| | | }
|
| | |
| | | () => |
| | | { |
| | | if (!UIHelper.CheckMoneyCount(horseConfig.UnlockValue, horseConfig.UnlockNeedCnt, 2)) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | HorseManager.Instance.unLockHorseID = carouselView.CurrentHorseId; |
| | | HorseManager.Instance.SendHorseIDOP(carouselView.CurrentHorseId, 1); |
| | | HorseManager.Instance.unLockSkinID = skinID; |
| | | bool isChangeState = HorseManager.Instance.IsChangeState(HorseManager.Instance.GetUsingHorseSkinID(false)); |
| | | if (!isChangeState) |
| | | { |
| | | HorseManager.Instance.SendSkinOP(2, skinID); |
| | | } |
| | | }); |
| | | }); |
| | | } |