| Core/NetworkPackage/DTCFile/ClientPack.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Fight/GameActor/GActorNpcNoFight.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Fight/GameActor/GActorPlayerBase.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Fight/GameActor/PartialModelResConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Fight/GameActor/PartialModelResConfig.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Lua/Gen/Resources.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/DungeonFightWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/IceCrystalVeinWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/KnapSack/Logic/ItemTipsModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/NetworkPackage/DTCFile/ClientPack.meta
File was deleted Fight/GameActor/GActorNpcNoFight.cs
@@ -185,18 +185,42 @@ else { string _name = NpcConfig.MODE; var _configName = string.Empty; if (_name.Contains("A_Zs")) { _configName = _name.Substring(_name.LastIndexOf("A_")); _name = "A_Zs"; GameObjectPoolManager.Instance.AddDontDestroyGoInstID(m_Model.GetInstanceID()); } else if (_name.Contains("A_Fs")) { _configName = _name.Substring(_name.LastIndexOf("A_")); _name = "A_Fs"; GameObjectPoolManager.Instance.AddDontDestroyGoInstID(m_Model.GetInstanceID()); } if (_name.Contains("A_Zs") || _name.Contains("A_Fs")) { if (!string.IsNullOrEmpty(_configName)) { var _renderer = m_Model.GetComponentInChildren<SkinnedMeshRenderer>(); if (_renderer) { MaterialLoader.Release(_renderer.material); var _modelResConfig = ModelResConfig.GetClothesConfig(_configName); if (_modelResConfig != null) { _renderer.material = MaterialLoader.LoadClothesMaterial(_modelResConfig.ID, false, false); } } } } _controller = AnimatorControllerLoader.LoadMobController(AnimatorControllerLoader.controllerSuffix, _name); } if (_controller) { m_Animator.runtimeAnimatorController = _controller; Fight/GameActor/GActorPlayerBase.cs
@@ -333,6 +333,7 @@ { MaterialLoader.Release(m_SMRenderer.material); m_SMRenderer.material = null; m_SMRenderer.materials = m_SMRenderer.sharedMaterials = new Material[0]; } m_Material = null; Fight/GameActor/PartialModelResConfig.cs
New file @@ -0,0 +1,33 @@ using UnityEngine; using System.Collections.Generic; namespace TableConfig { public partial class ModelResConfig : ConfigBase, IConfigPostProcess { private static readonly Dictionary<string, ModelResConfig> dict = new Dictionary<string, ModelResConfig>(); public void OnConfigParseCompleted() { if (Type == (int)E_ModelResType.Suit) { string _name = ResourcesName; int _index = _name.IndexOf('/'); if (_index != -1) { _name = _name.Substring(_index + 1); } dict[_name] = this; } } public static ModelResConfig GetClothesConfig(string name) { if(dict.ContainsKey(name)) { return dict[name]; } return null; } } } Fight/GameActor/PartialModelResConfig.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 715e00ac94f99e048bf256c1812177e4 timeCreated: 1544002326 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: Lua/Gen/Resources.meta
File was deleted System/Dungeon/DungeonFightWin.cs
@@ -204,7 +204,7 @@ string language = string.Empty; if (dataMapId == GeneralDefine.ruinsTranscriptMapId) { language = Language.Get(model.mission.lineID > main.LayerNumberNow ? "WHMJ_Quit2" : "WHMJ_Quit1"); language = Language.Get(model.mission.lineID > main.LayerNumber ? "WHMJ_Quit2" : "WHMJ_Quit1"); } else if (dataMapId == BossHomeModel.BOSSHOME_MAPID) { System/Dungeon/IceCrystalVeinWin.cs
@@ -33,18 +33,14 @@ DungeonModel model { get { return m_Model ?? (m_Model = ModelCenter.Instance.GetModel<DungeonModel>()); } } private int IndexSelect = 1; private int StarAll = 0; private List<int> IceCrystalVeinMiddle = new List<int>(); private Dictionary<int, int> IceCrystalVeinMiddleDic = new Dictionary<int, int>(); private List<IceLodeStarAwardClass> IceLodeStarAwardList = new List<IceLodeStarAwardClass>(); #region Built-in protected override void BindController() { m_ScrollerController.OnRefreshCell += OnRefreshGridCell; var _IceCrystalVeinReward = Config.Instance.Get<FuncConfigConfig>("IceCrystalVeinReward"); int[] IceCrystalVeinReward = ConfigParse.GetMultipleStr<int>(_IceCrystalVeinReward.Numerical1); for (int i = 0; i < IceCrystalVeinReward.Length; i++) { IceCrystalVeinMiddle.Add(IceCrystalVeinReward[i]); } IceCrystalVeinMiddleDic = ConfigParse.GetDic<int, int>(_IceCrystalVeinReward.Numerical1); var Openconfig = Config.Instance.Get<FuncOpenLVConfig>(83); m_TextLv.text = Language.Get("IceCrystal_4", Openconfig.LimitLV); } @@ -261,25 +257,23 @@ for (int i = 0; i < m_GridMiddle.childCount; i++) { GameObject ObjChild = m_GridMiddle.GetChild(i).gameObject; if (i < IceCrystalVeinMiddle.Count) { ObjChild.SetActive(true); ItemCell _ItemCell = ObjChild.GetComponent<ItemCell>(); ItemCellModel cellModel = new ItemCellModel(IceCrystalVeinMiddle[i], true, (ulong)1); _ItemCell.Init(cellModel); int type = i; _ItemCell.cellBtn.SetListener(() => { ItemAttrData attrData = new ItemAttrData(IceCrystalVeinMiddle[type], false, (ulong)1); itemTipsModel.SetItemTipsModel(attrData); }); } else { ObjChild.SetActive(false); } ObjChild.SetActive(false); } int INDEX = 0; foreach (var key in IceCrystalVeinMiddleDic.Keys) { GameObject ObjChild = m_GridMiddle.GetChild(INDEX).gameObject; ObjChild.SetActive(true); INDEX += 1; ItemCell _ItemCell = ObjChild.GetComponent<ItemCell>(); ItemCellModel cellModel = new ItemCellModel(key, true, (ulong)IceCrystalVeinMiddleDic[key]); _ItemCell.Init(cellModel); _ItemCell.cellBtn.SetListener(() => { ItemAttrData attrData = new ItemAttrData(key, false, (ulong)IceCrystalVeinMiddleDic[key]); itemTipsModel.SetItemTipsModel(attrData); }); } } private void SetGridBotton() { System/KnapSack/Logic/ItemTipsModel.cs
@@ -451,7 +451,8 @@ petAndMountQualityDict.Add(qualitys[i],qualityNames[i]); } } ParseFuncConfig(); } public void OnBeforePlayerDataInitialize() @@ -463,6 +464,47 @@ { } #region 解析本地数据 public Dictionary<string,List<int>> atkSpeedColorDict { get; private set; } private void ParseFuncConfig() { atkSpeedColorDict = new Dictionary<string, List<int>>(); var equipYPAtkSpeedColor = Config.Instance.Get<FuncConfigConfig>("EquipYPAtkSpeedColor"); JsonData atkSpeedData = JsonMapper.ToObject(equipYPAtkSpeedColor.Numerical1); foreach(var color in atkSpeedData.Keys) { List<int> list = new List<int>(); atkSpeedColorDict.Add(color,list); if(atkSpeedData[color].IsArray) { for(int i = 0; i < atkSpeedData[color].Count; i++) { int range = 0; int.TryParse(atkSpeedData[color][i].ToString(),out range); list.Add(range); } } } } public bool TryGetAtkSpeedColor(int atkSpeed,out string color) { color = string.Empty; foreach(var key in atkSpeedColorDict.Keys) { var rangelist = atkSpeedColorDict[key]; if(rangelist.Count > 1) { if(atkSpeed >= rangelist[0] && atkSpeed <= rangelist[1]) { color = key; return true; } } } return false; } #endregion /// <summary> /// 刷新脱机外挂时间 @@ -1071,6 +1113,12 @@ } } if(key == (int)AttrEnum.ATKSPEED) { int attrValue = GetProValueType(playerProModel.ISPercentage, itemEffectDict[key]); otherStr = SetAttrColor(otherStr,attrValue,attrData.itemConfig.EquipPlace); } if (attrSB.Length <= 0) { attrSB.Append(otherStr); @@ -1177,6 +1225,35 @@ } return s; } private string SetAttrColor(string attrStr,int atkSpeed,int equipPlace) { if ((RoleEquipType)equipPlace != RoleEquipType.retFairyCan && (RoleEquipType)equipPlace != RoleEquipType.retFairyCan2) { return attrStr; } string color = string.Empty; bool isColor = TryGetAtkSpeedColor(atkSpeed,out color); if(isColor) { return StringUtility.Contact("<color=#",color, ">", attrStr, "</color>"); } return attrStr; } public int GetProValueType(int precentType, int value) { switch(precentType) { case 1: case 2: return Mathf.RoundToInt(value / 100); default: return value; } } #endregion #region 设置传奇属性