| | |
| | | private Dictionary<int, List<int>> composeJobLimitDict = new Dictionary<int, List<int>>();
|
| | | public void ParseFuncConfig()
|
| | | {
|
| | | addonsFormulaModel = Config.Instance.Get<FuncConfigConfig>("ComposeAddonsFormula");
|
| | | addonsFormulaModel = FuncConfigConfig.Get("ComposeAddonsFormula");
|
| | | composeJobLimitDict.Clear();
|
| | | FuncConfigConfig funcConfig = Config.Instance.Get<FuncConfigConfig>("ComposeJobLimit");
|
| | | FuncConfigConfig funcConfig = FuncConfigConfig.Get("ComposeJobLimit");
|
| | | JsonData limitData = JsonMapper.ToObject(funcConfig.Numerical1);
|
| | | foreach (var job in limitData.Keys)
|
| | | {
|
| | |
| | | if (makeIds == null || makeIds.Length < 1) return PackType.rptDeleted;
|
| | |
|
| | | int makeId = makeIds[0];
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(makeId);
|
| | | var itemConfig = ItemConfig.Get(makeId);
|
| | |
|
| | | return GeneralDefine.GetPackTypeByItemType(itemConfig.Type);
|
| | | }
|
| | |
| | | for ( int i = 0; i < fixedCounts.Length; i++)
|
| | | {
|
| | | var fixedId = fixedIds[i];
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(fixedId);
|
| | | var itemConfig = ItemConfig.Get(fixedId);
|
| | | var packType = GeneralDefine.GetPackTypeByItemType(itemConfig.Type);
|
| | | int haveCount = playerPack.GetItemCountByID(packType,fixedIds[i]);
|
| | | if (haveCount < fixedCounts[i])
|
| | |
| | | int haveCount = playerPack.GetItemCountByID(packType, fixedIds[i]);
|
| | | if (haveCount < fixedCounts[i])
|
| | | {
|
| | | ItemConfig fixedConfig = Config.Instance.Get<ItemConfig>(fixedIds[i]);
|
| | | ItemConfig fixedConfig = ItemConfig.Get(fixedIds[i]);
|
| | | if (fixedConfig.GetWay.Length < 1)
|
| | | {
|
| | | ItemAttrData attrData = new ItemAttrData(fixedConfig.ID);
|
| | |
| | |
|
| | | if(!IsEnoughMoney(compoundModel))
|
| | | {
|
| | | ItemConfig fixedConfig = Config.Instance.Get<ItemConfig>(2100);
|
| | | ItemConfig fixedConfig = ItemConfig.Get(2100);
|
| | | if (fixedConfig.GetWay.Length < 1)
|
| | | {
|
| | | ItemAttrData attrData = new ItemAttrData(fixedConfig.ID);
|
| | |
| | | {
|
| | | if (CurComposeModel == null) return string.Empty;
|
| | | int[] makeIds = CurComposeModel.makeID;
|
| | | ItemConfig config = Config.Instance.Get<ItemConfig>(makeIds[0]);
|
| | | ItemConfig config = ItemConfig.Get(makeIds[0]);
|
| | | StringBuilder stringBuilder = new StringBuilder();
|
| | | if (bindCnt > 0)
|
| | | {
|
| | |
| | | public bool CheckComposeItemById(int itemId,out int jumpId)
|
| | | {
|
| | | jumpId = 0;
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemId);
|
| | | ItemConfig itemConfig = ItemConfig.Get(itemId);
|
| | | if (itemConfig == null) return false;
|
| | |
|
| | | int[] composeCondi = itemConfig.JumpComposeCondi;
|
| | |
| | | {
|
| | | if (type != PackType.rptItem) return;
|
| | |
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(id);
|
| | | ItemConfig itemConfig = ItemConfig.Get(id);
|
| | | if(itemConfig != null && itemConfig.Type == (int)ItemType.ComposeSuitStone)
|
| | | {
|
| | | RefreshComposeRed();
|