Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
Pik-4 committed Dec 23, 2024
1 parent bc09dd0 commit df635b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion HsMod/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private void Start()
private void Update()
{
// todo: check game status
if ((autoQuitTimer.Value > 0) && (ConfigValue.Get().RunningTime >= (autoQuitTimer.Value + 1145)))
if ((autoQuitTimer.Value > 0) && (ConfigValue.Get().RunningTime >= (autoQuitTimer.Value + 1818)))
{
Utils.MyLogger(BepInEx.Logging.LogLevel.Warning, "Force Auto Quit...");
Utils.Quit();
Expand Down
4 changes: 2 additions & 2 deletions HsMod/Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1791,12 +1791,12 @@ public static void PatchEndGameScreenShow(ref TAG_PLAYSTATE playState, ref Spell
gameRank = BaconLobbyMgr.Get()?.GetBattlegroundsActiveGameModeRating().ToString();
}
finalResult = $"{String.Join("<br />", DateTime.Now.ToString().Split(' '))},{finalResult},{gameRank},{gameType},{Utils.CacheLastOpponentFullName},";
//finalResult += $"High:{Utils.CacheLastOpponentAccountID.High}+Low:{Utils.CacheLastOpponentAccountID.Low}";
finalResult += $"Opponent: {Utils.CacheLastOpponentAccountID.Low}, MyPlayer: {BnetPresenceMgr.Get()?.GetMyPlayer()?.GetBestName()?.ToString()}";
finalResult += $"OPPOSING: Low:{Utils.CacheLastOpponentAccountID.Low}+High:{Utils.CacheLastOpponentAccountID.High}";
if (isAutoReportEnable.Value)
{
finalResult += " => 已举报";
}
finalResult += $"<br />FRIENDLY: {BnetPresenceMgr.Get()?.GetMyPlayer()?.GetBestName()?.ToString()}";
System.IO.File.AppendAllText(CommandConfig.hsMatchLogPath, finalResult + "\n");
Utils.CacheLastOpponentAccountID = null;
}
Expand Down
2 changes: 1 addition & 1 deletion HsMod/WebPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ public static StringBuilder MatchLogPage()
temp += "<th>当前排名</th>";
temp += "<th>游戏模式</th>";
temp += "<th>你的对手</th>";
temp += "<th>对手信息</th>";
temp += "<th>玩家信息</th>";
temp += "</tr>";
builder.Append(temp);

Expand Down

0 comments on commit df635b7

Please sign in to comment.