lcy
21 小时以前 77bba22f0fc0a0e620548731bfb9974553033164
512 跨服演武场

1.隐藏跨服后的本服排行界面预设入口
2.机器人服务器名显示本服名称
3.修复无法查看排行榜玩家信息bug
9个文件已修改
2个文件已添加
94 ■■■■■ 已修改文件
Main/Config/ConfigBase.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Config/ConfigManager.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Config/Configs/RobotConfig.cs 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Config/Configs/RobotConfig.cs.meta 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Arena/ArenaChallengeCell.cs 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Arena/ArenaManager.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Arena/ArenaPlayerRankCell.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Arena/ArenaPlayerTop3Cell.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Arena/ArenaRecordCell.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/OtherPlayerDetail/OtherPlayerDetailManager.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/OtherPlayerDetail/OtherPlayerDetailWin.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Config/ConfigBase.cs
@@ -92,7 +92,8 @@
            var index = line.IndexOf("\t");
            if (index == -1)
            {
                continue;
                string result = line.Trim();
                index = result.Length;
            }
            string strKey = line.Substring(0, index);
Main/Config/ConfigManager.cs
@@ -111,6 +111,7 @@
            typeof(PresetUnlockConfig),
            typeof(PriorBundleConfig),
            typeof(RandomNameConfig),
            typeof(RobotConfig),
            typeof(SignInConfig),
            typeof(SkillSkinConfig),
            typeof(StoreConfig),
@@ -423,6 +424,8 @@
        ClearConfigDictionary<PriorBundleConfig>();
        // 清空 RandomNameConfig 字典
        ClearConfigDictionary<RandomNameConfig>();
        // 清空 RobotConfig 字典
        ClearConfigDictionary<RobotConfig>();
        // 清空 SignInConfig 字典
        ClearConfigDictionary<SignInConfig>();
        // 清空 SkillSkinConfig 字典
Main/Config/Configs/RobotConfig.cs
New file
@@ -0,0 +1,38 @@
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           Thursday, May 7, 2026
//--------------------------------------------------------
using System.Collections.Generic;
using System;
using UnityEngine;
using LitJson;
public partial class RobotConfig : ConfigBase<int, RobotConfig>
{
    static RobotConfig()
    {
        // 访问过静态构造函数
        visit = true;
    }
    public int ID;
    public override int LoadKey(string _key)
    {
        int key = GetKey(_key);
        return key;
    }
    public override void LoadConfig(string input)
    {
        try {
        string[] tables = input.Split('\t');
        int.TryParse(tables[0],out ID);
        }
        catch (Exception exception)
        {
            Debug.LogError(exception);
        }
    }
}
Main/Config/Configs/RobotConfig.cs.meta
New file
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fcdec0934a6834f498bdf03a22e215c5
MonoImporter:
  externalObjects: {}
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
Main/System/Arena/ArenaChallengeCell.cs
@@ -49,7 +49,10 @@
        {
            txtAddScore.SetActive(false);
            txtServerName.SetActive(true);
            txtServerName.text = ServerListCenter.Instance.GetServerName((int)arenaMatchInfo.ServerID);
            if (ArenaManager.Instance.IsRobot((int)arenaMatchInfo.PlayerID))
                txtServerName.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID));
            else
                txtServerName.text = ServerListCenter.Instance.GetServerName((int)arenaMatchInfo.ServerID);
            txtAddCrossScore.SetActive(true);
            txtAddCrossScore.text = Language.Get("Arena16", ArenaManager.Instance.GetChallengePoints(index));
        }
@@ -80,4 +83,4 @@
            }
        }
    }
}
}
Main/System/Arena/ArenaManager.cs
@@ -503,6 +503,11 @@
        DateTime sunday = seasonStartDate.AddDays(6);
        seasonEndDate = new DateTime(sunday.Year, sunday.Month, sunday.Day, 23, 59, 59);
    }
    public bool IsRobot(int playerID)
    {
        return RobotConfig.HasKey(playerID);
    }
}
Main/System/Arena/ArenaPlayerRankCell.cs
@@ -68,7 +68,10 @@
            // 跨服显示服务器名称
            if (isCross && serverText != null)
            {
                serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(rankData.name2));
                if (ArenaManager.Instance.IsRobot((int)rankData.id))
                    serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID));
                else
                    serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(rankData.name2));
            }
            avatarCell.SetListener(() =>
Main/System/Arena/ArenaPlayerTop3Cell.cs
@@ -42,12 +42,16 @@
        if (isCross && serverText != null)
        {
            serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(rankData.name2));
            if (ArenaManager.Instance.IsRobot((int)rankData.id))
                serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID));
            else
                serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(rankData.name2));
        }
        queryPlayerBtn.SetListener(() =>
        {
            AvatarHelper.TryViewOtherPlayerInfo((int)rankData.id, viewPlayerLineupType: (int)BattlePreSetType.Arena);
            int serverID = (ArenaManager.Instance.IsOpenCrossServer() && rankData.id != PlayerDatas.Instance.baseData.PlayerID) ? UIHelper.GetServerIDByAccount(rankData.name2) : 0;
            AvatarHelper.TryViewOtherPlayerInfo((int)rankData.id, serverID, viewPlayerLineupType: (int)BattlePreSetType.Arena);
        });
    }
Main/System/Arena/ArenaRecordCell.cs
@@ -52,7 +52,10 @@
            {
                // 跨服记录:显示跨服时间和跨服服务器
                txtCrossDate.text = FormatTime(arenaGameRec.Time);
                txtServerName.text = ServerListCenter.Instance.GetServerName((int)arenaGameRec.ServerID);
                if (ArenaManager.Instance.IsRobot((int)arenaGameRec.Value3))
                    txtServerName.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID));
                else
                    txtServerName.text = ServerListCenter.Instance.GetServerName((int)arenaGameRec.ServerID);
            }
            else
            {
Main/System/OtherPlayerDetail/OtherPlayerDetailManager.cs
@@ -31,6 +31,10 @@
        DTC0102_tagCDBPlayer.beforePlayerDataInitializeEventOnRelogin -= OnBeforePlayerDataInitializeEventOnRelogin;
    }
    public bool IsRobot(int playerID)
    {
        return RobotConfig.HasKey(playerID);
    }
    public void OnBeforePlayerDataInitializeEventOnRelogin()
    {
Main/System/OtherPlayerDetail/OtherPlayerDetailWin.cs
@@ -155,7 +155,10 @@
    {
        txtPlayerName.text = viewPlayerData.PlayerName;
        txtPlayerId.text = Language.Get("OtherPlayerDetail02", viewPlayerData.PlayerID);
        txtServerName.text = Language.Get("PlayerProfile11", ServerListCenter.Instance.GetServerName(viewPlayerData.ServerID));
        if (OtherPlayerDetailManager.Instance.IsRobot(viewPlayerData.PlayerID))
            txtServerName.text = Language.Get("PlayerProfile11", ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID)));
        else
            txtServerName.text = Language.Get("PlayerProfile11", ServerListCenter.Instance.GetServerName(viewPlayerData.ServerID));
        txtLV.text = viewPlayerData.LV.ToString();
        avatarCell.InitUI(AvatarHelper.GetAvatarModel(viewPlayerData.PlayerID, viewPlayerData.Face, viewPlayerData.FacePic));
        officialTitle.InitUI(viewPlayerData.RealmLV, viewPlayerData.TitleID, 0.65f);