protected virtual void OnQuery_StatusMigrationSkillConfirm_YES() { //IL_0175: Unknown result type (might be due to invalid IL or missing references) List <SkillItemInfo> list = new List <SkillItemInfo>(); List <MigrationSkillData> list2 = new List <MigrationSkillData>(); for (int i = 0; i < migrationOldItem.GetMaxSlot(); i++) { bool flag = false; SkillItemInfo skillItem = migrationOldItem.GetSkillItem(i, MonoBehaviourSingleton <StatusManager> .I.GetCurrentEquipSetNo()); if (skillItem != null) { for (int j = 0; j < migrationSelectItem.GetMaxSlot(); j++) { SkillItemTable.SkillSlotData skillSlotData = migrationSelectItem.tableData.GetSkillSlot(migrationSelectItem.exceed)[j]; if (skillSlotData != null && skillSlotData.slotType == skillItem.tableData.type) { int toSlot = j; if (migrationSelectItem.IsExceedSkillSlot(j)) { toSlot = migrationSelectItem.GetExceedSkillSlotNo(j); } if (list2.All((MigrationSkillData x) => x.toSlotNo != toSlot)) { MigrationSkillData item = new MigrationSkillData(migrationSelectItem.uniqueID, toSlot, skillItem); list2.Add(item); flag = true; break; } } } if (!flag) { list.Add(skillItem); } } } migrationSendCount = list2.Count + list.Count; GameSection.SetEventData(new ChangeEquipData(selectEquipSetData.setNo, selectEquipSetData.index, migrationSelectItem)); GameSection.StayEvent(); this.StartCoroutine(SendReplacementSkill(list2, list)); }
protected StatusEquipSetCopyModel.RequestSendForm CopyEquipSetInfo(EquipSetInfo equipSet, int equipSetNo) { StatusEquipSetCopyModel.RequestSendForm requestSendForm = new StatusEquipSetCopyModel.RequestSendForm(); requestSendForm.no = equipSetNo; requestSendForm.name = equipSet.name; requestSendForm.wuid0 = ((equipSet.item[0] == null) ? "0" : equipSet.item[0].uniqueID.ToString()); requestSendForm.wuid1 = ((equipSet.item[1] == null) ? "0" : equipSet.item[1].uniqueID.ToString()); requestSendForm.wuid2 = ((equipSet.item[2] == null) ? "0" : equipSet.item[2].uniqueID.ToString()); requestSendForm.auid = ((equipSet.item[3] == null) ? "0" : equipSet.item[3].uniqueID.ToString()); requestSendForm.ruid = ((equipSet.item[5] == null) ? "0" : equipSet.item[5].uniqueID.ToString()); requestSendForm.luid = ((equipSet.item[6] == null) ? "0" : equipSet.item[6].uniqueID.ToString()); requestSendForm.huid = ((equipSet.item[4] == null) ? "0" : equipSet.item[4].uniqueID.ToString()); requestSendForm.show = equipSet.showHelm; int i = 0; for (int num = equipSet.item.Length; i < num; i++) { EquipItemInfo equipItemInfo = equipSet.item[i]; if (equipItemInfo != null) { SkillSlotUIData[] skillSlotData = GetSkillSlotData(equipItemInfo); if (skillSlotData != null) { int j = 0; for (int num2 = skillSlotData.Length; j < num2; j++) { SkillItemInfo itemData = skillSlotData[j].itemData; requestSendForm.euids.Add(equipItemInfo.uniqueID.ToString()); requestSendForm.suids.Add((itemData == null) ? "0" : itemData.uniqueID.ToString()); int num3 = j; if (equipItemInfo.IsExceedSkillSlot(num3)) { num3 = equipItemInfo.GetExceedSkillSlotNo(num3); } requestSendForm.slots.Add(num3); } } } } return(requestSendForm); }