| | |
| | | public Redpoint redPointStre2 = new Redpoint(MainRedDot.RedPoint_MountPackKey, Redpoint_key2);//坐骑兽魂 |
| | | private void OnItemRefreshEvent(PackType type, int index, int id) |
| | | { |
| | | MountH0704(playerPack.GetItemByIndex(type, index)); |
| | | if (type == PackType.Equip)
|
| | | {
|
| | | RefreshCurrentMount(playerPack.GetItemByIndex(type, index)); |
| | | } |
| | | |
| | | if (type == PackType.Item) |
| | | { |
| | | if (_DicMountItem.ContainsKey(id)) |
| | |
| | | } |
| | | } |
| | | return SkillLv; |
| | | } |
| | | public void MountH0704(ItemModel info)//获取当前的坐骑 |
| | | }
|
| | |
|
| | | void RefreshCurrentMount(ItemModel info)//获取当前的坐骑 |
| | | { |
| | | if (info == null)
|
| | | {
|
| | | return;
|
| | | } |
| | | |
| | | if (info == null || info.packType != PackType.Equip) |
| | | return; |
| | | if (info.gridIndex == (byte)RoleEquipType.Mount)//坐骑位置19 |
| | | if (info.config.EquipPlace == (byte)RoleEquipType.Mount)//坐骑位置19 |
| | | { |
| | | if (Hconfigs.Count <= 0) |
| | | { |
| | | Hconfigs = HorseConfig.GetValues(); |
| | | } |
| | | // var configs = HorseConfig.GetValues(); |
| | | |
| | | foreach (var config in Hconfigs) |
| | | { |
| | | if (config.ItemID == info.itemId) |
| | |
| | | { |
| | | Event_MountAlteration(_HorseIDNow); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | |
| | | MountDanRed(); |
| | | MountStoneRed(); |
| | | } |