少年修仙传客户端代码仓库
hch
2025-01-07 d50fad674de1258ef16818e7248a4acd9b66f6ea
10331 【越南】【英语】【BT】【砍树】境界修改 - 引导
2个文件已修改
29 ■■■■ 已修改文件
System/Realm/RealmMissionCell.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmModel.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmMissionCell.cs
@@ -66,7 +66,7 @@
                    missionNameText.text = Language.Get("RealmMissionName2", MapConfig.Get(config.NeedValueList[0]).Name, config.NeedValueList[1]);
                    break;
                case 3:
                    curValue = model.GetMissionProcess(id);
                    curValue = model.GetMissionProcess(missionID);
                    expSlider.value = (float)curValue / config.NeedValueList[0];
                    processText.text = StringUtility.Contact(curValue, "/", config.NeedValueList[0]);
                    missionNameText.text = Language.Get("RealmMissionName3", config.NeedValueList[0]);
@@ -106,7 +106,7 @@
                    break;
                case 6:
                    missionNameText.text = Language.Get("RealmMissionName6");
                    curValue = model.GetMissionProcess(id);
                    curValue = model.GetMissionProcess(missionID);
                    expSlider.value = (float)curValue / 1;
                    processText.text = StringUtility.Contact(curValue, "/", 1);
                    break;
System/Realm/RealmModel.cs
@@ -98,6 +98,8 @@
        PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
        DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
        SkyTowerModel skyTowerModel { get { return ModelCenter.Instance.GetModel<SkyTowerModel>(); } }
        DailyQuestModel dailyQuestModel { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } }
        WorldBossModel worldBossModel { get { return ModelCenter.Instance.GetModel<WorldBossModel>(); } }
        public override void Init()
        {
@@ -943,7 +945,28 @@
            }
            else if (realMissionGuides.ContainsKey(type))
            {
                NewBieCenter.Instance.StartNewBieGuideEx(realMissionGuides[type][0]);
                int guideIndex = 0;
                if (type == 1)
                {
                    var dailyQuestState = dailyQuestModel.GetQuestState((int)DailyQuestType.FairyLand);
                    if (dailyQuestState == DailyQuestModel.DailyQuestState.Locked)
                        guideIndex = 0;
                    else if (dailyQuestState == DailyQuestModel.DailyQuestState.Normal)
                        guideIndex = 1;
                    else if (dailyQuestState == DailyQuestModel.DailyQuestState.CanBuyTimes)
                        guideIndex = 2;
                    else
                        guideIndex = 3;
                }
                else if (type == 4)
                {
                    if (worldBossModel.GetWorldBossRemainCount() == 0)
                    {
                        guideIndex = 1;
                    }
                }
                NewBieCenter.Instance.StartNewBieGuideEx(realMissionGuides[type][guideIndex]);
            }
        }