少年修仙传客户端代码仓库
9686 【越南】【主干】【BT7】野外根据境界动态刷怪 - 地图怪物等级
2个文件已修改
25 ■■■■■ 已修改文件
System/WorldMap/LocalMapEventPointToggle.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WorldMap/LocalMapFindPath.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WorldMap/LocalMapEventPointToggle.cs
@@ -54,6 +54,7 @@
            this.m_FlyBoot.SetListener(FlyToEventPoint);
        }
        [IFix.Patch]
        private void DisplayEventInfo()
        {
            var config = MapEventPointConfig.Get(this.m_EventId);
@@ -73,7 +74,23 @@
                }
                else
                {
                    this.m_Description.text = StringUtility.Contact(Language.Get("Z1024", config.LowLV), "-", config.HighestLV);
                    if (ILRuntimeUtility.Instance.ModelInvoke<int>("MapLevelModel", "GetSelectIndex") != 0)
                    {
                        int lowLV = ILRuntimeUtility.Instance.ModelInvoke<int>("MapLevelModel", "GetSelectLowLV", config.NPCID);
                        if (lowLV == 0)
                        {
                            this.m_Description.text = StringUtility.Contact(Language.Get("Z1024", config.LowLV), "-", config.HighestLV);
                        }
                        else
                        {
                            this.m_Description.text = StringUtility.Contact(Language.Get("Z1024", lowLV), "-",
                                ILRuntimeUtility.Instance.ModelInvoke<int>("MapLevelModel", "GetSelectHighestLV", config.NPCID));
                        }
                    }
                    else
                    {
                        this.m_Description.text = StringUtility.Contact(Language.Get("Z1024", config.LowLV), "-", config.HighestLV);
                    }
                }
                this.m_MonsterType.SetActive(false);
System/WorldMap/LocalMapFindPath.cs
@@ -437,8 +437,14 @@
            }
        }
        [IFix.Patch]
        private void FoucsEventPoint(int _eventPoint)
        {
            if (ILRuntimeUtility.Instance.ModelInvoke<int>("MapLevelModel", "GetSelectIndex") != 0)
            {
                m_EventPointInstroduce.SetActive(false);
                return;
            }
            var config = MapEventPointConfig.Get(_eventPoint);
            if (config != null)
            {