少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-27 c7e1ea7acec1520f6b6884fe6142a453236492d1
7608 【前端】【主干】新增幼龙装备位获取途径
2个文件已修改
1个文件已添加
40 ■■■■ 已修改文件
Lua/Gen/Resources.meta 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SnxxzUIPackModelWrap.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/PackModel.cs 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/Resources.meta
New file
@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 333301204b494b74d9b94c11e715f04a
folderAsset: yes
timeCreated: 1561122995
licenseType: Pro
DefaultImporter:
  userData:
  assetBundleName:
  assetBundleVariant:
Lua/Gen/SnxxzUIPackModelWrap.cs
@@ -2081,7 +2081,6 @@
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
                Snxxz.UI.PackModel gen_to_be_invoked = (Snxxz.UI.PackModel)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fairyRedPointLvlimt);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
@@ -2095,7 +2094,6 @@
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
                Snxxz.UI.PackModel gen_to_be_invoked = (Snxxz.UI.PackModel)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.wingsRedpointLvlimt);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
@@ -2109,7 +2107,7 @@
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
                Snxxz.UI.PackModel gen_to_be_invoked = (Snxxz.UI.PackModel)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fairyGetPathId);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.guardGetPathId);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
System/KnapSack/Logic/PackModel.cs
@@ -484,17 +484,13 @@
        #endregion
        #region 玩家装备特殊逻辑
        public int fairyRedPointLvlimt { get; private set; }
        public int wingsRedpointLvlimt { get; private set; }
        public int fairyGetPathId { get; private set; }
        public int guardGetPathId { get; private set; }
        public Dictionary<int, int> wingsGetPathIdDict { get; private set; }
        public Dictionary<int, List<int>> dungeonUseDict { get; private set; }
        void ParseConfig()
        {
            FuncConfigConfig funcConfig = FuncConfigConfig.Get("WingYuPeiHQTJ");
            fairyRedPointLvlimt = int.Parse(funcConfig.Numerical1);
            wingsRedpointLvlimt = int.Parse(funcConfig.Numerical2);
            fairyGetPathId = int.Parse(funcConfig.Numerical3);
            guardGetPathId = int.Parse(funcConfig.Numerical3);
            wingsGetPathIdDict = ConfigParse.GetDic<int, int>(funcConfig.Numerical4);
            FuncConfigConfig copyItemBulletWindow = FuncConfigConfig.Get("CopyItemBulletWindow");
            JsonData copyWinData = JsonMapper.ToObject(copyItemBulletWindow.Numerical1);
@@ -519,9 +515,8 @@
            int playerJob = PlayerDatas.Instance.baseData.Job;
            switch ((RoleEquipType)equipPlace)
            {
                case RoleEquipType.FairyCan1:
                case RoleEquipType.FairyCan2:
                    return fairyGetPathId;
                case RoleEquipType.Guard:
                    return guardGetPathId;
                case RoleEquipType.Wing:
                    if (wingsGetPathIdDict.ContainsKey(playerJob))
                    {
@@ -529,6 +524,7 @@
                    }
                    break;
            }
            return 0;
        }
@@ -551,14 +547,13 @@
        {
            switch ((RoleEquipType)equipPlace)
            {
                case RoleEquipType.Wing:
                    if (PlayerDatas.Instance.baseData.LV >= wingsRedpointLvlimt)
                    {
                        return true;
                    }
                    break;
                case RoleEquipType.Wing:
                    return true;
                case RoleEquipType.Guard:
                    return true;
                default:
                    return false;
            }
            return false;
        }
        #endregion