| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class PackModelInterface : Model, IBeforePlayerDataInitialize
|
| | | public class PackModelInterface : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | private ItemConfig tagChinModel;
|
| | | private FuncConfigConfig _equipGSFormula;
|
| | |
| | | itemEffectCDDict.Clear();
|
| | | itemEffectTimelist.Clear();
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | |
| | | }
|
| | |
|
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | |
| | | RefreshPickItemEvent(type,guid);
|
| | | }
|
| | | }
|
| | |
|
| | | Dictionary<int, ItemModel> RealmBetterDict = new Dictionary<int, ItemModel>();
|
| | | public Dictionary<int, ItemModel> CheckBetterEquipByRealm()
|
| | | {
|
| | | RealmBetterDict.Clear();
|
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
|
| | | if (singlePack == null) return RealmBetterDict;
|
| | |
|
| | | int realmLv = PlayerDatas.Instance.baseData.realmLevel;
|
| | | Dictionary<int,ItemModel> pairs = singlePack.GetPackModelIndexDict();
|
| | | foreach(var model in pairs.Values)
|
| | | {
|
| | | if(model.chinItemModel.EquipPlace > 0
|
| | | && model.chinItemModel.EquipPlace != (int)RoleEquipType.retSpiritAnimal
|
| | | && model.chinItemModel.RealmLimit <= realmLv
|
| | | && !IsOverdue(model.itemInfo.ItemGUID,model.itemId,model.useDataDict)
|
| | | && IsFightUp(model.itemId,model.equipScore) == 1)
|
| | | {
|
| | | if(!RealmBetterDict.ContainsKey(model.EquipPlace))
|
| | | {
|
| | | RealmBetterDict.Add(model.EquipPlace,model);
|
| | | }
|
| | | else
|
| | | {
|
| | | if(model.equipScore > RealmBetterDict[model.EquipPlace].equipScore)
|
| | | {
|
| | | RealmBetterDict[model.EquipPlace] = model;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | return RealmBetterDict;
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region 解锁格子
|