| | |
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | |
|
| | | var fashionClothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | var fashionClothesId = fashionClothes == null ? 0 : (int)fashionClothes.itemInfo.ItemID;
|
| | |
|
| | | var fashionSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | var fashionSecondaryId = fashionSecondary == null ? 0 : (int)fashionSecondary.itemInfo.ItemID;
|
| | |
|
| | | var magicianModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | | var godWeapon1 = magicianModel.GetGodWeaponInfo(1);
|
| | | var godWeapon2 = magicianModel.GetGodWeaponInfo(2);
|
| | |
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = PlayerDatas.Instance.baseData.Job,
|
| | | clothesId = clothesId,
|
| | | clothesId = fashionClothesId > 0 ? fashionClothesId : clothesId,
|
| | | suitLevel = 0,
|
| | | weaponId = 0,
|
| | | wingsId = wingsId,
|
| | | secondaryId = secondaryId,
|
| | | secondaryId = fashionSecondaryId > 0 ? fashionSecondaryId : secondaryId,
|
| | | isDialogue = false,
|
| | | godWeapons = null
|
| | | };
|
| | |
| | | {
|
| | | clothesId = itemData.ItemID;
|
| | | }
|
| | | itemData = roleParticularModel.GetItemData(RoleEquipType.retFashionClothes);
|
| | | if (itemData != null)
|
| | | {
|
| | | clothesId = itemData.ItemID;
|
| | | }
|
| | | wingsId = 0;
|
| | | itemData = roleParticularModel.GetItemData(RoleEquipType.retWing);
|
| | | if (itemData != null)
|
| | |
| | | {
|
| | | secondaryId = itemData.ItemID;
|
| | | }
|
| | | itemData = roleParticularModel.GetItemData(RoleEquipType.retFashionWeapon2);
|
| | | if (itemData != null)
|
| | | {
|
| | | secondaryId = itemData.ItemID;
|
| | | }
|
| | |
|
| | | data = new UI3DPlayerExhibitionData
|
| | | {
|
| | |
| | | itemData = _leaderData.roleEquipDataDic[RoleEquipType.retWeapon2];
|
| | | weapon2 = itemData.ItemID;
|
| | | }
|
| | | int fashionClothes = 0;
|
| | | if (_leaderData.roleEquipDataDic.ContainsKey(RoleEquipType.retFashionClothes))
|
| | | {
|
| | | itemData = _leaderData.roleEquipDataDic[RoleEquipType.retFashionClothes];
|
| | | fashionClothes = itemData.ItemID;
|
| | | }
|
| | | int fashionWeapon = 0;
|
| | | if (_leaderData.roleEquipDataDic.ContainsKey(RoleEquipType.retFashionWeapon))
|
| | | {
|
| | | itemData = _leaderData.roleEquipDataDic[RoleEquipType.retFashionWeapon];
|
| | | fashionWeapon = itemData.ItemID;
|
| | | }
|
| | | int fashionWeapon2 = 0;
|
| | | if (_leaderData.roleEquipDataDic.ContainsKey(RoleEquipType.retFashionWeapon2))
|
| | | {
|
| | | itemData = _leaderData.roleEquipDataDic[RoleEquipType.retFashionWeapon2];
|
| | | fashionWeapon2 = itemData.ItemID;
|
| | | }
|
| | |
|
| | | var godWeapons = new Dictionary<int, int>();
|
| | | var magicianModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | |
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = _leaderData.rolePropData.Job,
|
| | | clothesId = clothes,
|
| | | clothesId = fashionClothes > 0 ? fashionClothes : clothes,
|
| | | suitLevel = _suitEffect,
|
| | | weaponId = weapon,
|
| | | weaponId = fashionWeapon > 0 ? fashionWeapon : weapon,
|
| | | wingsId = wing,
|
| | | secondaryId = weapon2,
|
| | | secondaryId = fashionWeapon2 > 0 ? fashionWeapon2 : weapon2,
|
| | | godWeapons = godWeapons,
|
| | | isDialogue = false,
|
| | | };
|
| | |
| | | Dictionary<int, FashionDress> fashionDressDict = new Dictionary<int, FashionDress>();
|
| | | Dictionary<int, int> fashionDressLevelDict = new Dictionary<int, int>();
|
| | | Dictionary<int, Dictionary<int, int>> cabinetPropertyDict = new Dictionary<int, Dictionary<int, int>>();
|
| | | Dictionary<int, int> fashionTypeMapPlaceDict = new Dictionary<int, int>();
|
| | | Dictionary<int, List<int>> fashionDressTypeDict = new Dictionary<int, List<int>>();
|
| | | Dictionary<int, Dictionary<int, List<int>>> fashionDressQualityDict = new Dictionary<int, Dictionary<int, List<int>>>();
|
| | |
|
| | |
| | | public Dictionary<int, int> fashionDressEquipDict { get; private set; }
|
| | | public List<int> fashionDressLevelUpItems { get; private set; }
|
| | | public List<int> fashionDressTypes { get; private set; }
|
| | | public Dictionary<int, int> fashionTypeMapPlaceDict { get; private set; }
|
| | |
|
| | | int m_SelectType = 1;
|
| | | public int selectType
|
| | |
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | |
|
| | | foreach (var type in model.fashionDressTypes)
|
| | | {
|
| | | var selectFashionId = model.GetSelectFashionDress(type);
|
| | | if (selectFashionId == 0)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | FashionDress fashionDress;
|
| | | if (model.TryGetFashionDress(selectFashionId, out fashionDress))
|
| | | {
|
| | | var index = model.fashionTypeMapPlaceDict[type];
|
| | | switch ((RoleEquipType)index)
|
| | | {
|
| | | case RoleEquipType.retFashionWeapon:
|
| | | weaponId = fashionDress.GetEquipItemId();
|
| | | break;
|
| | | case RoleEquipType.retFashionClothes:
|
| | | clothesId = fashionDress.GetEquipItemId();
|
| | | break;
|
| | | case RoleEquipType.retFashionWeapon2:
|
| | | secondaryId = fashionDress.GetEquipItemId();
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | int _suitLevel = 0;
|
| | |
|
| | | if (clothes != null)
|
| | |
| | |
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var _secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | |
|
| | | var fashionClothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | var fashionClothesId = fashionClothes == null ? 0 : (int)fashionClothes.itemInfo.ItemID;
|
| | |
|
| | | var fashionWeapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | var fashionWeaponId = fashionWeapon == null ? 0 : (int)fashionWeapon.itemInfo.ItemID;
|
| | |
|
| | | var fashionSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | var fashionSecondaryId = fashionSecondary == null ? 0 : (int)fashionSecondary.itemInfo.ItemID;
|
| | | #endregion
|
| | |
|
| | | showPoint = m_HeroStage;
|
| | | var _hero = ShowHero(_job, _clothesId, _weaponId, _wingsId, _secondaryId);
|
| | | var _hero = ShowHero(_job, fashionClothesId > 0 ? fashionClothesId : _clothesId,
|
| | | fashionWeaponId > 0 ? fashionWeaponId : _weaponId, _wingsId,
|
| | | fashionSecondaryId > 0 ? fashionSecondaryId : _secondaryId);
|
| | | if (_hero != null)
|
| | | {
|
| | | SitDown();
|
| | |
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | |
|
| | | var fashionClothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | var fashionClothesId = fashionClothes == null ? 0 : (int)fashionClothes.itemInfo.ItemID;
|
| | |
|
| | | var fashionWeapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | var fashionWeaponId = fashionWeapon == null ? 0 : (int)fashionWeapon.itemInfo.ItemID;
|
| | |
|
| | | var fashionSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | var fashionSecondaryId = fashionSecondary == null ? 0 : (int)fashionSecondary.itemInfo.ItemID;
|
| | |
|
| | | int _suitLevel = 0;
|
| | |
|
| | | if (clothes != null)
|
| | |
| | | UI3DPlayerExhibitionData data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | | job = job,
|
| | | clothesId = clothesId,
|
| | | clothesId = fashionClothesId > 0 ? fashionClothesId : clothesId,
|
| | | suitLevel = _suitLevel,
|
| | | weaponId = weaponId,
|
| | | weaponId = fashionWeaponId > 0 ? fashionWeaponId : weaponId,
|
| | | wingsId = wingsId,
|
| | | secondaryId = secondaryId,
|
| | | secondaryId = fashionSecondaryId > 0 ? fashionSecondaryId : secondaryId,
|
| | | isDialogue = false,
|
| | | godWeapons = dict
|
| | | };
|
| | |
| | | {
|
| | | weapon2 = itemData.ItemID;
|
| | | }
|
| | | int fashionClothes = 0;
|
| | | itemData = model.GetItemData(RoleEquipType.retFashionClothes);
|
| | | if (itemData != null)
|
| | | {
|
| | | fashionClothes = itemData.ItemID;
|
| | | }
|
| | | int fashionWeapon = 0;
|
| | | itemData = model.GetItemData(RoleEquipType.retFashionWeapon);
|
| | | if (itemData != null)
|
| | | {
|
| | | fashionWeapon = itemData.ItemID;
|
| | | }
|
| | | int fashionWeapon2 = 0;
|
| | | itemData = model.GetItemData(RoleEquipType.retFashionWeapon2);
|
| | | if (itemData != null)
|
| | | {
|
| | | fashionWeapon2 = itemData.ItemID;
|
| | | }
|
| | |
|
| | | var godWeapons = new Dictionary<int, int>();
|
| | | var magicianModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | |
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = viewPlayerData.rolePropData.Job,
|
| | | clothesId = clothes,
|
| | | clothesId = fashionClothes > 0 ? fashionClothes : clothes,
|
| | | suitLevel = _suitLevel,
|
| | | weaponId = weapon,
|
| | | weaponId = fashionWeapon > 0 ? fashionWeapon : weapon,
|
| | | wingsId = wing,
|
| | | secondaryId = weapon2,
|
| | | secondaryId = fashionWeapon2 > 0 ? fashionWeapon2 : weapon2,
|
| | | godWeapons = godWeapons,
|
| | | isDialogue = false,
|
| | | };
|
| | |
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var _secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | |
|
| | | var fashionClothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | var fashionClothesId = fashionClothes == null ? 0 : (int)fashionClothes.itemInfo.ItemID;
|
| | |
|
| | | var fashionWeapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | var fashionWeaponId = fashionWeapon == null ? 0 : (int)fashionWeapon.itemInfo.ItemID;
|
| | |
|
| | | var fashionSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | var fashionSecondaryId = fashionSecondary == null ? 0 : (int)fashionSecondary.itemInfo.ItemID;
|
| | |
|
| | | int _suitLevel = 0;
|
| | |
|
| | | if (clothes != null)
|
| | |
| | | UI3DPlayerExhibitionData data = new UI3DPlayerExhibitionData()
|
| | | {
|
| | | job = _job,
|
| | | clothesId = _clothesId,
|
| | | clothesId = fashionClothesId > 0 ? fashionClothesId : _clothesId,
|
| | | suitLevel = _suitLevel,
|
| | | weaponId = _weaponId,
|
| | | weaponId = fashionWeaponId > 0 ? fashionWeaponId : _weaponId,
|
| | | wingsId = _wingsId,
|
| | | secondaryId = _secondaryId,
|
| | | secondaryId = fashionSecondaryId > 0 ? fashionSecondaryId : _secondaryId,
|
| | | godWeapons = dict,
|
| | | isDialogue = false,
|
| | | };
|
| | |
| | |
|
| | | if (exceptEquip != RoleEquipType.retClothes)
|
| | | {
|
| | | clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | clothes = clothes ?? playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
|
| | | }
|
| | |
|
| | | if (exceptEquip != RoleEquipType.retWeapon)
|
| | | {
|
| | | var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
|
| | | var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | weapon = weapon ?? playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
|
| | | weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (exceptEquip != RoleEquipType.retWeapon2)
|
| | | {
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | secondary = secondary ?? playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | | }
|
| | |
|