diff --git a/Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs b/Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs index 38b95c90759..ffee18070a1 100644 --- a/Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs +++ b/Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs @@ -123,11 +123,11 @@ protected override void AppendRoundEndText(EntityUid uid, AdventureRuleComponent string summaryText; if (profit < 0) { - summaryText = Loc.GetString("adventure-mode-list-loss", ("amount", BankSystemExtensions.ToSpesoString(-profit))); + summaryText = Loc.GetString("adventure-list-loss", ("amount", BankSystemExtensions.ToSpesoString(-profit))); } else { - summaryText = Loc.GetString("adventure-mode-list-profit", ("amount", BankSystemExtensions.ToSpesoString(profit))); + summaryText = Loc.GetString("adventure-list-profit", ("amount", BankSystemExtensions.ToSpesoString(profit))); } ev.AddLine($"- {playerInfo.Name} {summaryText}"); allScore.Add(new Tuple(playerInfo.Name, profit)); @@ -136,7 +136,7 @@ protected override void AppendRoundEndText(EntityUid uid, AdventureRuleComponent if (!(allScore.Count >= 1)) return; - var relayText = Loc.GetString("adventure-list-high"); + var relayText = Loc.GetString("adventure-webhook-list-high"); relayText += '\n'; var highScore = allScore.OrderByDescending(h => h.Item2).ToList(); @@ -144,20 +144,20 @@ protected override void AppendRoundEndText(EntityUid uid, AdventureRuleComponent { if (highScore.First().Item2 < 0) break; - var profitText = Loc.GetString("adventure-mode-top-profit", ("amount", BankSystemExtensions.ToSpesoString(highScore.First().Item2))); + var profitText = Loc.GetString("adventure-webhook-top-profit", ("amount", BankSystemExtensions.ToSpesoString(highScore.First().Item2))); relayText += $"{highScore.First().Item1} {profitText}"; relayText += '\n'; highScore.RemoveAt(0); } - relayText += '\n'; // Extra line separating the - relayText += Loc.GetString("adventure-list-low"); + relayText += '\n'; // Extra line separating the highest and lowest scores + relayText += Loc.GetString("adventure-webhook-list-low"); relayText += '\n'; highScore.Reverse(); for (var i = 0; i < 10 && highScore.Count > 0; i++) { if (highScore.First().Item2 > 0) break; - var lossText = Loc.GetString("adventure-mode-top-loss", ("amount", BankSystemExtensions.ToSpesoString(-highScore.First().Item2))); + var lossText = Loc.GetString("adventure-webhook-top-loss", ("amount", BankSystemExtensions.ToSpesoString(-highScore.First().Item2))); relayText += $"{highScore.First().Item1} {lossText}"; relayText += '\n'; highScore.RemoveAt(0); @@ -535,7 +535,7 @@ private void AddStationCoordsToSet(Vector2 coords) _stationCoords.Add(coords); } - private async Task ReportRound(String message, int color = 0x77DDE7) + private async Task ReportRound(string message, int color = 0x77DDE7) { Logger.InfoS("discord", message); String webhookUrl = _configurationManager.GetCVar(CCVars.DiscordLeaderboardWebhook); @@ -548,7 +548,7 @@ private async Task ReportRound(String message, int color = 0x77DDE7) { new() { - Title = Loc.GetString("adventure-list-start"), + Title = Loc.GetString("adventure-webhook-list-start"), Description = message, Color = color, }, diff --git a/Resources/Locale/en-US/_NF/adventure/adventure.ftl b/Resources/Locale/en-US/_NF/adventure/adventure.ftl index c227bb1c12d..72305911954 100644 --- a/Resources/Locale/en-US/_NF/adventure/adventure.ftl +++ b/Resources/Locale/en-US/_NF/adventure/adventure.ftl @@ -1,11 +1,14 @@ ## UI adventure-list-start = [color=gold]NT Galactic Bank[/color] -adventure-mode-list-profit = made a total profit of [color=#d19e5e]{$amount}[/color]. -adventure-mode-list-loss = lost a total of [color=#659cc9]{$amount}[/color]. -adventure-mode-top-profit = made a total profit of {$amount}. -adventure-mode-top-loss = lost a total of {$amount}. -adventure-list-high = This Shift's Top Earners: -adventure-list-low = This Shift's Biggest Spenders: +adventure-list-profit = made a total profit of [color=#d19e5e]{$amount}[/color]. +adventure-list-loss = lost a total of [color=#659cc9]{$amount}[/color]. + +adventure-webhook-list-start = NT Galactic Bank +adventure-webhook-list-high = This Shift's Top Earners: +adventure-webhook-list-low = This Shift's Biggest Spenders: +adventure-webhook-top-profit = made a total profit of {$amount}. +adventure-webhook-top-loss = lost a total of {$amount}. + adventure-title = New Frontier Adventure Mode adventure-description = Join a ship crew or buy your own and explore, research, salvage, or haul your way to riches! currency = Spesos