From 90365010c1a17d7469044b4b17af4c76aa6ba376 Mon Sep 17 00:00:00 2001 From: K4ryuu <104531589+K4ryuu@users.noreply.github.com> Date: Fri, 26 Jan 2024 03:35:12 +0100 Subject: [PATCH] Remake Console Lang --- src/K4ryuuDamageInfo.cs | 3 ++- src/lang/en.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/K4ryuuDamageInfo.cs b/src/K4ryuuDamageInfo.cs index f9f0a4c..f69d14d 100644 --- a/src/K4ryuuDamageInfo.cs +++ b/src/K4ryuuDamageInfo.cs @@ -101,7 +101,8 @@ private HookResult OnPlayerHurt(EventPlayerHurt @event, GameEventInfo info) { if (Config.ConsoleDamageInfo) { - attacker.PrintToConsole(Localizer["phrases.center.normal", victim.PlayerName, damageToHeath, damageToArmor, hitgroup]); + attacker.PrintToConsole(Localizer["phrases.console.normal", victim.PlayerName, damageToHeath, damageToArmor, hitgroup]); + victim.PrintToConsole(Localizer["phrases.console.inverse", attacker.PlayerName, damageToHeath, damageToArmor, hitgroup]); } if (Config.CenterDamageInfo) diff --git a/src/lang/en.json b/src/lang/en.json index 7428a8d..36366f3 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -5,6 +5,7 @@ "phrases.center.deadly": "Damage Given:\nHP {0} | HitGroup: {1}", "phrases.center.normal": "Damage Given:\nHP {0} | Armor {1} | HitGroup: {2}", "phrases.console.normal": "Damage Given To: {0} | HP {0} | Armor {1} | HitGroup: {2}", + "phrases.console.inverse": "Damage Taken From: {0} | HP {0} | Armor {1} | HitGroup: {2}", "phrases.dead": "DEAD", "phrases.hitgroup.0": "Body", "phrases.hitgroup.1": "Head",