少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-10 14135df34e495f59fb85e72b50d9b47fc8755de3
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
5个文件已修改
75 ■■■■■ 已修改文件
Core/GameEngine/Model/TelPartialConfig/tagStoreConfig.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/DungeonLiquidModel.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyGrassDungeonWin.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyGrassModel.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Vip/VipPrivilegeWidget.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/TelPartialConfig/tagStoreConfig.cs
@@ -8,8 +8,7 @@
    private static Dictionary<StoreItem, StoreConfig> s_StoreItemDict = new Dictionary<StoreItem, StoreConfig>();
    private static Dictionary<int, List<StoreConfig>> storeConfigs = new Dictionary<int, List<StoreConfig>>();
    static readonly int[] shop1Types = new int[] { 2, 3 };
    static readonly int[] shop2Types = new int[] { 4 };
    static readonly int[] shop1Types = new int[] { 1, 2, 3 };
    public void OnConfigParseCompleted()
    {
        if (ShopType == 0) return;
@@ -62,23 +61,6 @@
                                item = _item,
                                type = _moneyType,
                                shopType = shop1Types[i],
                            };
                            if (s_StoreItemDict.ContainsKey(storeItem))
                            {
                                return s_StoreItemDict[storeItem];
                            }
                        }
                    }
                    break;
                case 2:
                    {
                        for (int i = 0; i < shop2Types.Length; i++)
                        {
                            var storeItem = new StoreItem()
                            {
                                item = _item,
                                type = _moneyType,
                                shopType = shop2Types[i],
                            };
                            if (s_StoreItemDict.ContainsKey(storeItem))
                            {
System/Dungeon/DungeonLiquidModel.cs
@@ -44,12 +44,18 @@
                    _dict = new Dictionary<int, StoreConfig>();
                    liquidStoreDict.Add(liquidItems[i], _dict);
                }
                for (int k = 0; k < _moneyTypeList.Count; k++)
                for (int j = 0; j < _shopTypes.Count; j++)
                {
                    var config = StoreConfig.GetStoreCfg(liquidItems[i], _moneyTypeList[k]);
                    if (config != null && _shopTypes.Contains(config.ShopType))
                    for (int k = 0; k < _moneyTypeList.Count; k++)
                    {
                        _dict.Add(_moneyTypeList[k], config);
                        var config = StoreConfig.GetStoreCfg(liquidItems[i], _moneyTypeList[k], _shopTypes[j]);
                        if (config != null)
                        {
                            if (!_dict.ContainsKey(_moneyTypeList[k]))
                            {
                                _dict.Add(_moneyTypeList[k], config);
                            }
                        }
                    }
                }
            }
System/HazyRegion/HazyGrassDungeonWin.cs
@@ -121,6 +121,15 @@
            [SerializeField] Transform m_Container;
            [SerializeField] Text m_Title;
            [SerializeField] Text m_Count;
            [SerializeField] Transform m_ContainerItem;
            [SerializeField] Text m_ItemCount;
            HazyGrassModel model
            {
                get { return ModelCenter.Instance.GetModel<HazyGrassModel>(); }
            }
            PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
            public void Display(int npcId, int count)
            {
@@ -128,6 +137,17 @@
                m_Title.text = Language.Get("HazyGrassCountTitle", npcConfig.charName);
                m_Count.text = count.ToString();
                m_Count.color = UIHelper.GetUIColor(count > 0 ? TextColType.Green : TextColType.Red);
                m_ContainerItem.gameObject.SetActive(PlayerDatas.Instance.baseData.MapID == HazyGrassModel.FAIRY_CLIENTDATAMAP
                    || PlayerDatas.Instance.baseData.MapID == HazyGrassModel.FAIRY_DATAMAP);
                if (m_ContainerItem.gameObject.activeSelf)
                {
                    var itemId = model.GetGrassNpcItemId(npcId);
                    var itemCount = packModel.GetItemCountByID(PackType.Item, itemId);
                    m_ItemCount.text = itemCount.ToString();
                    m_ItemCount.color = UIHelper.GetUIColor(itemCount > 0 ? TextColType.Green : TextColType.Red);
                }
            }
            public void SetActive(bool active)
System/HazyRegion/HazyGrassModel.cs
@@ -8,6 +8,7 @@
    public class HazyGrassModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
    {
        Dictionary<int, int> m_MapNpcCount = new Dictionary<int, int>();
        Dictionary<int, int> m_NpcMapItems;
        public const int REIKI_DATAMAP = 32040;
        public const int FAIRY_DATAMAP = 32050;
@@ -43,6 +44,8 @@
        void ParseConfig()
        {
            var funcConfig = FuncConfigConfig.Get("HazyGrassNpcMapItem");
            m_NpcMapItems = ConfigParse.GetDic<int, int>(funcConfig.Numerical1);
        }
        private void OnStageLoadFinish()
@@ -187,6 +190,15 @@
            return 0;
        }
        public int GetGrassNpcItemId(int npcId)
        {
            if (m_NpcMapItems.ContainsKey(npcId))
            {
                return m_NpcMapItems[npcId];
            }
            return 0;
        }
        public string GetLocalSaveKey(int mapId)
        {
            return StringUtility.Contact("HazyGrassMap", mapId, "_", PlayerDatas.Instance.PlayerId);
System/Vip/VipPrivilegeWidget.cs
@@ -58,6 +58,15 @@
                        }
                    }
                    break;
                case 6:
                    var isEmptyLabel = string.IsNullOrEmpty(label);
                    m_NullSymbol.gameObject.SetActive(isEmptyLabel);
                    m_Description.gameObject.SetActive(!isEmptyLabel);
                    if (!isEmptyLabel)
                    {
                        m_Description.text = label;
                    }
                    break;
                case 1:
                default:
                    m_Symbol.gameObject.SetActive(value > 0);