| | |
| | |
|
| | | public override void Init()
|
| | | {
|
| | | _equipGSFormula = Config.Instance.Get<FuncConfigConfig>("EquipGSFormula");
|
| | | _equipGSFormula = FuncConfigConfig.Get("EquipGSFormula");
|
| | | equipBaseAttrlist.Clear();
|
| | | JsonData baseAttr = JsonMapper.ToObject(_equipGSFormula.Numerical2);
|
| | | if (baseAttr.IsArray)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | _itemPush = Config.Instance.Get<FuncConfigConfig>("ItemPush");
|
| | | _itemPush = FuncConfigConfig.Get("ItemPush");
|
| | | preciousItemType = ConfigParse.GetMultipleStr<int>(_itemPush.Numerical1);
|
| | |
|
| | | FuncConfigConfig noPromptUsetItem = Config.Instance.Get<FuncConfigConfig>("NoPromptUsetItem");
|
| | | FuncConfigConfig noPromptUsetItem = FuncConfigConfig.Get("NoPromptUsetItem");
|
| | | promptUseLimitDict = ConfigParse.GetDic<int, int>(noPromptUsetItem.Numerical1);
|
| | |
|
| | | _drugIDFunc = Config.Instance.Get<FuncConfigConfig>("LifePotionlist");
|
| | | _drugIDFunc = FuncConfigConfig.Get("LifePotionlist");
|
| | | drugIDs = ConfigParse.GetMultipleStr<int>(_drugIDFunc.Numerical1);
|
| | | _oneKeySellFunc = Config.Instance.Get<FuncConfigConfig>("OneKeySellItemType");
|
| | | _oneKeySellFunc = FuncConfigConfig.Get("OneKeySellItemType");
|
| | | onekeySellTypes = ConfigParse.GetMultipleStr<int>(_oneKeySellFunc.Numerical1);
|
| | | FuncConfigConfig funcConfig = Config.Instance.Get<FuncConfigConfig>("IntroductionItem");
|
| | | FuncConfigConfig funcConfig = FuncConfigConfig.Get("IntroductionItem");
|
| | | pushItemIds = ConfigParse.GetMultipleStr<int>(funcConfig.Numerical1);
|
| | | pushBuffTypeIds = ConfigParse.GetMultipleStr<int>(funcConfig.Numerical2);
|
| | | FuncConfigConfig betterEquipExcConfig = Config.Instance.Get<FuncConfigConfig>("GoodItemDungeon");
|
| | | FuncConfigConfig betterEquipExcConfig = FuncConfigConfig.Get("GoodItemDungeon");
|
| | | betterEquipExceptDungeonDict = new Dictionary<int, List<int>>();
|
| | | JsonData excEquipData = JsonMapper.ToObject(betterEquipExcConfig.Numerical1);
|
| | | foreach (var dungeonId in excEquipData.Keys)
|
| | |
| | | {
|
| | | specAttrDic.Clear();
|
| | | int id = itemId;
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemId);
|
| | | ItemConfig itemConfig = ItemConfig.Get(itemId);
|
| | | if (CheckIsCustomItem(itemConfig))
|
| | | {
|
| | | AppointItemConfig appointItemConfig = Config.Instance.Get<AppointItemConfig>(itemId);
|
| | | AppointItemConfig appointItemConfig = AppointItemConfig.Get(itemId);
|
| | | SetCustomAttrData(appointItemConfig);
|
| | | id = itemConfig.EffectValueA1;
|
| | | }
|
| | |
| | | private float curProValue = 0;
|
| | | private int GetEquipScore(PackType type, int itemId, Dictionary<AttrEnum, int> specAttrDict)
|
| | | {
|
| | | tagChinModel = Config.Instance.Get<ItemConfig>(itemId);
|
| | | tagChinModel = ItemConfig.Get(itemId);
|
| | | if (tagChinModel == null || !GeneralDefine.CompareEquipPlaces.Contains(tagChinModel.EquipPlace)) return 0;
|
| | |
|
| | | Equation.Instance.Clear();
|
| | |
| | | {
|
| | | foreach (var key in curEquipAttrDict.Keys)
|
| | | {
|
| | | PlayerPropertyConfig propertyConfig = Config.Instance.Get<PlayerPropertyConfig>((int)key);
|
| | | PlayerPropertyConfig propertyConfig = PlayerPropertyConfig.Get((int)key);
|
| | | if (propertyConfig != null)
|
| | | {
|
| | | Equation.Instance.AddKeyValue(propertyConfig.Parameter, curEquipAttrDict[key]);
|
| | |
| | | public bool CheckPreciousCondition(ItemModel itemModel)
|
| | | {
|
| | | bool isReach = true;
|
| | | WindowSearchConfig windowSearch = Config.Instance.Get<WindowSearchConfig>((int)itemModel.chinItemModel.Jump);
|
| | | WindowSearchConfig windowSearch = WindowSearchConfig.Get((int)itemModel.chinItemModel.Jump);
|
| | | if (windowSearch != null)
|
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen(windowSearch.Lv) && windowSearch.Lv != 0)
|
| | |
| | | if (singlePack == null) return false;
|
| | |
|
| | | int startLockIndex = singlePack.openGridCount - playerPack.InitBagGridCnt;
|
| | | FuncConfigConfig _tagFuncModel = Config.Instance.Get<FuncConfigConfig>("OpenBagItem");
|
| | | FuncConfigConfig _tagFuncModel = FuncConfigConfig.Get("OpenBagItem");
|
| | | int haveCount = playerPack.GetItemCountByID(PackType.rptItem, itemId);
|
| | | Equation.Instance.Clear();
|
| | | Equation.Instance.AddKeyValue("index", startLockIndex + 1);
|
| | |
| | | {
|
| | | if (playerPack.CheckIsDrugById(model.itemId))
|
| | | {
|
| | | AttrFruitConfig fruitConfig = Config.Instance.Get<AttrFruitConfig>(model.itemId);
|
| | | AttrFruitConfig fruitConfig = AttrFruitConfig.Get(model.itemId);
|
| | | if (!playerPack.IsReachMaxUseDrug(fruitConfig)
|
| | | && model.chinItemModel.RealmLimit <= realmLv)
|
| | | {
|
| | |
| | | time = 0;
|
| | | }
|
| | | itemEffectTimelist.Add(guid);
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemID);
|
| | | ItemConfig itemConfig = ItemConfig.Get(itemID);
|
| | | if (time >= itemConfig.ExpireTime)
|
| | | {
|
| | | KnapsackTimeCDMgr.Instance.UnRegister(guid);
|
| | |
| | | {
|
| | | wingsQualitys = null;
|
| | | wingsRefineExps = null;
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemId);
|
| | | ItemConfig itemConfig = ItemConfig.Get(itemId);
|
| | | wingRefineQualityDict = WingRefineAttrConfig.GetWingsQualityModel(itemConfig.LV);
|
| | | if (useDataDic != null)
|
| | | {
|
| | |
| | | /// <returns></returns>
|
| | | public int IsFightUp(int _itemID, int _score)//-1低级,0不是本职业,1更好
|
| | | {
|
| | | ItemConfig chinItemModel = Config.Instance.Get<ItemConfig>(_itemID);
|
| | | ItemConfig chinItemModel = ItemConfig.Get(_itemID);
|
| | | if (chinItemModel != null)
|
| | | {
|
| | | ItemModel putOnModel = null;
|
| | |
| | | #region 物品是否过期
|
| | | public bool IsOverdue(string guid, int itemId, Dictionary<int, List<int>> useDataDict = null)
|
| | | {
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemId);
|
| | | ItemConfig itemConfig = ItemConfig.Get(itemId);
|
| | | if (itemConfig == null) return false;
|
| | |
|
| | | if (itemConfig.ExpireTime > 0)
|