| | |
| | | private int preThirdType = 0;
|
| | | [SerializeField] int initSuccessRate = 0;
|
| | | private int curComposeEquipIndex = -1;
|
| | | public static int selectEquipPlace;
|
| | | ItemCompoundConfig compoundModel = null;
|
| | | bool isIncreaseRate = false;
|
| | | int successRate = 0;
|
| | |
| | | composeWinModel.UpdateThirdTypeEvent -= UpdateThirdType;
|
| | | selectModel.UpdateSelectEvent -= UpdateSelect;
|
| | | composeWinModel.UpdateEquipTypeEvent -= UpdateEquipType;
|
| | | selectEquipPlace = -1;
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | |
| | | if(composeWinModel.CurComposeModel == null)
|
| | | {
|
| | | curComposeEquipIndex = -1;
|
| | | }
|
| | | List<ComposeWinModel.ComposeThirdTypeData> thirdTypeDatas = null;
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType, curThirdType, out thirdTypeDatas);
|
| | | if (thirdTypeDatas != null)
|
| | | {
|
| | | for (int i = 0; i < thirdTypeDatas.Count; i++)
|
| | | {
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(thirdTypeDatas[i].itemCompound.makeID[0]);
|
| | | if (itemConfig.EquipPlace == selectEquipPlace)
|
| | | {
|
| | | curComposeEquipIndex = i;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | private void SetFixedItemIndexDic()
|
| | | {
|
| | | fixedItemIndexDict.Clear();
|
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
|
| | | if (singlePack == null || compoundModel == null) return;
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | var packType = composeWinModel.GetPackTypeByMakerId(compoundModel.makeID);
|
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(packType);
|
| | | if (singlePack == null) return;
|
| | |
|
| | | int minBindCnt = 0;
|
| | | int minNoBindCnt = 0;
|