| | |
| | | }
|
| | |
|
| | | _hero.SwitchClothes((uint)_itemModel.itemInfo.ItemID);
|
| | | _hero.ChangeEquip((int)RoleEquipType.retClothes, (uint)_itemModel.itemInfo.ItemID, _suitLevel);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | _hero.SwitchGuard((uint)_itemModel.itemInfo.ItemID);
|
| | | }
|
| | |
|
| | | _itemModel = _equipModel.GetItemModelByIndex((int)RoleEquipType.retHat);
|
| | | if (_itemModel != null)
|
| | | {
|
| | | if (_itemModel.itemInfo.IsSuite == 1)
|
| | | {
|
| | | _suitLevel = (byte)_itemModel.useDataDict[30][0];
|
| | | _hero.ChangeEquip((int)RoleEquipType.retHat, (uint)_itemModel.itemInfo.ItemID, _suitLevel);
|
| | | }
|
| | | }
|
| | |
|
| | | _itemModel = _equipModel.GetItemModelByIndex((int)RoleEquipType.retBelt);
|
| | | if (_itemModel != null)
|
| | | {
|
| | | if (_itemModel.itemInfo.IsSuite == 1)
|
| | | {
|
| | | _suitLevel = (byte)_itemModel.useDataDict[30][0];
|
| | | _hero.ChangeEquip((int)RoleEquipType.retBelt, (uint)_itemModel.itemInfo.ItemID, _suitLevel);
|
| | | }
|
| | | }
|
| | |
|
| | | _itemModel = _equipModel.GetItemModelByIndex((int)RoleEquipType.retShoes);
|
| | | if (_itemModel != null)
|
| | | {
|
| | | if (_itemModel.itemInfo.IsSuite == 1)
|
| | | {
|
| | | _suitLevel = (byte)_itemModel.useDataDict[30][0];
|
| | | _hero.ChangeEquip((int)RoleEquipType.retShoes, (uint)_itemModel.itemInfo.ItemID, _suitLevel);
|
| | | }
|
| | | }
|
| | |
|
| | | _itemModel = _equipModel.GetItemModelByIndex((int)RoleEquipType.retTrousers);
|
| | | if (_itemModel != null)
|
| | | {
|
| | | if (_itemModel.itemInfo.IsSuite == 1)
|
| | | {
|
| | | _suitLevel = (byte)_itemModel.useDataDict[30][0];
|
| | | _hero.ChangeEquip((int)RoleEquipType.retTrousers, (uint)_itemModel.itemInfo.ItemID, _suitLevel);
|
| | | }
|
| | | }
|
| | | _hero.ChangeEquip(default(GActorPlayerBase.EquipInfo));
|
| | |
|
| | | _hero.IdleImmediate();
|
| | |
|