Skip to content

Commit

Permalink
totaly feed
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed Aug 13, 2024
1 parent 622b222 commit 99da383
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
48 changes: 24 additions & 24 deletions Content.Server/StatsBoard/StatsBoardSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public string GetRoundStats()
}
}

result += Loc.GetString("statsentry-species-entry-name");
result += Loc.GetString("statsentry-species-entry-name") + "\n";
foreach (var speciesEntry in roundSpecies)
{
var species = speciesEntry.Key;
Expand All @@ -517,138 +517,138 @@ public string GetRoundStats()
mostPopularSpecies = species;
}

result += Loc.GetString("statsentry-species-entry", ("name", Loc.GetString(species)), ("count", count));
result += Loc.GetString("statsentry-species-entry", ("name", Loc.GetString(species)), ("count", count)) + "\n";
}

if (mostPopularSpecies != null)
{
result += Loc.GetString("statsentry-mst-pop-species", ("name", Loc.GetString(mostPopularSpecies)));
result += Loc.GetString("statsentry-mst-pop-species", ("name", Loc.GetString(mostPopularSpecies))) + "\n";
}

var station = _station.GetStations().FirstOrDefault();
var bank = GetBankAccount(station);

if (bank != null)
result += Loc.GetString("statsentry-bank-balance", ("balance", bank.Balance));
result += Loc.GetString("statsentry-bank-balance", ("balance", bank.Balance)) + "\n";

if (_firstMurder.victim != null)
{
var victimUsername = TryGetUsername(_firstMurder.victim.Value);
var victimName = TryGetName(_firstMurder.victim.Value);
var victimUsernameColor = victimUsername != null ? $" ([color=gray]{victimUsername}[/color])" : "";
result += Loc.GetString("statsentry-firth-murder", ("name", victimName), ("username", victimUsernameColor));
result += Loc.GetString("statsentry-firth-murder-time", ("time", _firstMurder.time.ToString("hh\\:mm\\:ss")));
result += Loc.GetString("statsentry-firth-murder", ("name", victimName), ("username", victimUsernameColor)) + "\n";
result += Loc.GetString("statsentry-firth-murder-time", ("time", _firstMurder.time.ToString("hh\\:mm\\:ss"))) + "\n";
if (_firstMurder.killer != null)
{
var killerUsername = TryGetUsername(_firstMurder.killer.Value);
var killerName = TryGetName(_firstMurder.killer.Value);
var killerUsernameColor = killerUsername != null ? $" ([color=gray]{killerUsername}[/color])" : "";
result += Loc.GetString("statsentry-firth-murder-killer", ("name", killerName), ("username", killerUsernameColor));
result += Loc.GetString("statsentry-firth-murder-killer", ("name", killerName), ("username", killerUsernameColor)) + "\n";
}
else
{
Loc.GetString("statsentry-firth-murder-killer-none");
result += Loc.GetString("statsentry-firth-murder-killer-none") + "\n";
}
}

if (totalSlipped >= 1)
{
result += Loc.GetString("statsentry-total-slipped", ("count", totalSlipped));
result += Loc.GetString("statsentry-total-slipped", ("count", totalSlipped)) + "\n";
}

if (mostSlippedCharacter != null && maxSlippedCount > 1)
{
var username = TryGetUsername(mostSlippedCharacter.Value);
var name = TryGetName(mostSlippedCharacter.Value);
var usernameColor = username != null ? $" ([color=gray]{username}[/color])" : "";
result += Loc.GetString("statsentry-most-slipped", ("name", name), ("username", usernameColor), ("count", maxSlippedCount));
result += Loc.GetString("statsentry-most-slipped", ("name", name), ("username", usernameColor), ("count", maxSlippedCount)) + "\n";
}

if (totalCreampied >= 1)
{
result += Loc.GetString("statsentry-total-creampied", ("count", totalCreampied));
result += Loc.GetString("statsentry-total-creampied", ("count", totalCreampied)) + "\n";
}

if (mostDeadCharacter != null && maxDeadCount > 1)
{
var username = TryGetUsername(mostDeadCharacter.Value);
var name = TryGetName(mostDeadCharacter.Value);
var usernameColor = username != null ? $" ([color=gray]{username}[/color])" : "";
result += Loc.GetString("statsentry-most-dead", ("name", name), ("username", usernameColor), ("count", maxDeadCount));
result += Loc.GetString("statsentry-most-dead", ("name", name), ("username", usernameColor), ("count", maxDeadCount)) + "\n";
}

if (totalDoorEmaged >= 1)
{
result += Loc.GetString("statsentry-total-door-emaged", ("count", totalDoorEmaged));
result += Loc.GetString("statsentry-total-door-emaged", ("count", totalDoorEmaged)) + "\n";
}

if (mostDoorEmagedCharacter != null)
{
var username = TryGetUsername(mostDoorEmagedCharacter.Value);
var name = TryGetName(mostDoorEmagedCharacter.Value);
var usernameColor = username != null ? $" ([color=gray]{username}[/color])" : "";
result += Loc.GetString("statsentry-most-door-emaged-character", ("name", name), ("username", usernameColor), ("count", maxDoorEmagedCount));
result += Loc.GetString("statsentry-most-door-emaged-character", ("name", name), ("username", usernameColor), ("count", maxDoorEmagedCount)) + "\n";
}

if (_jointCreated >= 1)
{
result += Loc.GetString("statsentry-joint-created", ("count", _jointCreated));
result += Loc.GetString("statsentry-joint-created", ("count", _jointCreated)) + "\n";
}

if (totalKilledMice >= 1)
{
result += Loc.GetString("statsentry-total-killed-mice", ("count", totalKilledMice));
result += Loc.GetString("statsentry-total-killed-mice", ("count", totalKilledMice)) + "\n";
}

if (mostKillsMiceCharacter != null && maxKillsMice > 1)
{
var username = TryGetUsername(mostKillsMiceCharacter.Value);
var name = TryGetName(mostKillsMiceCharacter.Value);
var usernameColor = username != null ? $" ([color=gray]{username}[/color])" : "";
result += Loc.GetString("statsentry-most-kills-mice-character", ("name", name), ("username", usernameColor), ("count", maxKillsMice));
result += Loc.GetString("statsentry-most-kills-mice-character", ("name", name), ("username", usernameColor), ("count", maxKillsMice)) + "\n";
}

if (_hamsterKiller != null)
{
var username = TryGetUsername(_hamsterKiller.Value);
var name = TryGetName(_hamsterKiller.Value);
var usernameColor = username != null ? $" ([color=gray]{username}[/color])" : "";
result += Loc.GetString("statsentry-hamster-killer", ("name", name), ("username", usernameColor));
result += Loc.GetString("statsentry-hamster-killer", ("name", name), ("username", usernameColor)) + "\n";
}

if (totalCuffedCount >= 1)
{
result += Loc.GetString("statsentry-total-cuffed-count", ("count", totalCuffedCount));
result += Loc.GetString("statsentry-total-cuffed-count", ("count", totalCuffedCount)) + "\n";
}

if (playerWithLongestCuffedTime != null)
{
var username = TryGetUsername(playerWithLongestCuffedTime.Value);
var name = TryGetName(playerWithLongestCuffedTime.Value);
var usernameColor = username != null ? $" ([color=gray]{username}[/color])" : "";
result += Loc.GetString("statsentry-player-with-longest-cuffed-time", ("name", name), ("username", usernameColor), ("time", maxCuffedTime.ToString("hh\\:mm\\:ss")));
result += Loc.GetString("statsentry-player-with-longest-cuffed-time", ("name", name), ("username", usernameColor), ("time", maxCuffedTime.ToString("hh\\:mm\\:ss"))) + "\n";
}

if (totalSleepTime > TimeSpan.Zero)
{
result += Loc.GetString("statsentry-total-sleep-time", ("time", totalSleepTime.ToString("hh\\:mm\\:ss")));
result += Loc.GetString("statsentry-total-sleep-time", ("time", totalSleepTime.ToString("hh\\:mm\\:ss"))) + "\n";
}

if (playerWithLongestSleepTime != null)
{
var username = TryGetUsername(playerWithLongestSleepTime.Value);
var name = TryGetName(playerWithLongestSleepTime.Value);
var usernameColor = username != null ? $" ([color=gray]{username}[/color])" : "";
result += Loc.GetString("statsentry-player-with-longest-sleep-time", ("name", name), ("username", usernameColor));
result += Loc.GetString("statsentry-player-with-longest-sleep-time-time", ("time", maxSleepTime.ToString("hh\\:mm\\:ss")));
result += Loc.GetString("statsentry-player-with-longest-sleep-time", ("name", name), ("username", usernameColor)) + "\n";
result += Loc.GetString("statsentry-player-with-longest-sleep-time-time", ("time", maxSleepTime.ToString("hh\\:mm\\:ss"))) + "\n";
}

if (playerWithLongestSpaceTime != null)
{
var username = TryGetUsername(playerWithLongestSpaceTime.Value);
var name = TryGetName(playerWithLongestSpaceTime.Value);
var usernameColor = username != null ? $" ([color=gray]{username}[/color])" : "";
result += Loc.GetString("statsentry-player-with-longest-space-time", ("name", name), ("username", usernameColor), ("time", maxSpaceTime.ToString("hh\\:mm\\:ss")));
result += Loc.GetString("statsentry-player-with-longest-space-time", ("name", name), ("username", usernameColor), ("time", maxSpaceTime.ToString("hh\\:mm\\:ss"))) + "\n";
}

if (_clownCuffed.clown != null && _clownCuffed.time != null)
Expand Down
46 changes: 23 additions & 23 deletions Resources/Locale/ru-RU/_sunrise/statsboard/statsentry.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@ statsentry-sleep-time = Проспал [color=yellow]{ $name }[/color]\n
statsentry-int-cc = Трогал карту капитана: { $name }
statsentry-species-entry-name = На станции были представители таких рас:
statsentry-species-entry = \n[bold][color=white]{ $name }[/color][/bold] в количестве [color=white]{ $count }[/color].
statsentry-mst-pop-species = \nСамой распространённой расой стал [color=white]{ $name }[/color].
statsentry-bank-balance = \nПод конец смены баланс карго составил [color=white]{ $balance }[/color] кредитов.
statsentry-firth-murder = \nПервая жертва станции - [color=white]{ $name }[/color]{ $username }.
statsentry-firth-murder-time = \nВремя смерти - [color=yellow]{ $time }[/color].
statsentry-firth-murder-killer = \nУбийца - [color=white]{ $name }[/color]{ $username }.
statsentry-firth-murder-killer-none = \nСмерть наступила при неизвестных обстоятельствах.
statsentry-total-slipped = \nИгроки в этой смене поскользнулись [color=white]{ $count }[/color] раз.
statsentry-most-slipped = \nБольше всех раз поскользнулся [color=white]{ $name }[/color]{ $username } - [color=white]{ $count }[/color].
statsentry-total-creampied = \nВсего кремировано игроков: { $total }.
statsentry-most-dead = \nБольше всего раз умирал [color=white]{ $name }[/color]{ $username }, а именно [color=white]{ $count }[/color] раз.
statsentry-total-door-emaged = \nШлюзы были емагнуты [color=white]{ $count }[/color] раз.
statsentry-most-door-emaged-character = \nБольше всего шлюзов емагнул - [color=white]{ $name }[/color]{ $username } - [color=white]{ $count }[/color] раз.
statsentry-joint-created = \nБыло скручено [color=white]{ $count }[/color] косяков.
statsentry-total-killed-mice = \nБыло убито [color=white]{ $count }[/color] мышей.
statsentry-most-kills-mice-character = \n{ $name }[/color]{ $username } устроил геноцид, убив [color=white]{ $count }[/color] мышей.
statsentry-hamster-killer = \nУбийцей гамлета был [color=white]{ $name }[/color]{ $username }.
statsentry-total-cuffed-count = \nИгроки были закованы [color=white]{ $count }[/color] раз.
statsentry-player-with-longest-cuffed-time = \nБольше всего времени в наручниках провёл [color=white]{ $name }[/color]{ $username } - [color=yellow]{ $time }[/color].
statsentry-total-sleep-time = \nОбщее время сна игроков составило [color=yellow]{ $time }[/color].
statsentry-player-with-longest-sleep-time = \nГлавной соней станции оказался [color=white]{ $name }[/color]{ $username }.
statsentry-player-with-longest-sleep-time-time = \nОн спал на протяжении [color=yellow]{ $time }[/color].
statsentry-player-with-longest-space-time = \nБольше всего времени в космосе провел [color=white]{ $name }[/color]{ $usernameColor } - [color=yellow]{ $time }[/color].
statsentry-species-entry = [bold][color=white]{ $name }[/color][/bold] в количестве [color=white]{ $count }[/color].
statsentry-mst-pop-species = Самой распространённой расой стал [color=white]{ $name }[/color].
statsentry-bank-balance = Под конец смены баланс карго составил [color=white]{ $balance }[/color] кредитов.
statsentry-firth-murder = Первая жертва станции - [color=white]{ $name }[/color]{ $username }.
statsentry-firth-murder-time = Время смерти - [color=yellow]{ $time }[/color].
statsentry-firth-murder-killer = Убийца - [color=white]{ $name }[/color]{ $username }.
statsentry-firth-murder-killer-none = Смерть наступила при неизвестных обстоятельствах.
statsentry-total-slipped = Игроки в этой смене поскользнулись [color=white]{ $count }[/color] раз.
statsentry-most-slipped = Больше всех раз поскользнулся [color=white]{ $name }[/color]{ $username } - [color=white]{ $count }[/color].
statsentry-total-creampied = Всего кремировано игроков: { $total }.
statsentry-most-dead = Больше всего раз умирал [color=white]{ $name }[/color]{ $username }, а именно [color=white]{ $count }[/color] раз.
statsentry-total-door-emaged = Шлюзы были емагнуты [color=white]{ $count }[/color] раз.
statsentry-most-door-emaged-character = Больше всего шлюзов емагнул - [color=white]{ $name }[/color]{ $username } - [color=white]{ $count }[/color] раз.
statsentry-joint-created = Было скручено [color=white]{ $count }[/color] косяков.
statsentry-total-killed-mice = Было убито [color=white]{ $count }[/color] мышей.
statsentry-most-kills-mice-character = { $name }[/color]{ $username } устроил геноцид, убив [color=white]{ $count }[/color] мышей.
statsentry-hamster-killer = Убийцей гамлета был [color=white]{ $name }[/color]{ $username }.
statsentry-total-cuffed-count = Игроки были закованы [color=white]{ $count }[/color] раз.
statsentry-player-with-longest-cuffed-time = Больше всего времени в наручниках провёл [color=white]{ $name }[/color]{ $username } - [color=yellow]{ $time }[/color].
statsentry-total-sleep-time = Общее время сна игроков составило [color=yellow]{ $time }[/color].
statsentry-player-with-longest-sleep-time = Главной соней станции оказался [color=white]{ $name }[/color]{ $username }.
statsentry-player-with-longest-sleep-time-time = Он спал на протяжении [color=yellow]{ $time }[/color].
statsentry-player-with-longest-space-time = Больше всего времени в космосе провел [color=white]{ $name }[/color]{ $usernameColor } - [color=yellow]{ $time }[/color].

0 comments on commit 99da383

Please sign in to comment.