Skip to content

Commit

Permalink
Remake Console Lang
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ryuu committed Jan 26, 2024
1 parent 7003dfe commit 9036501
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/K4ryuuDamageInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9036501

Please sign in to comment.