Skip to content

Commit

Permalink
feat: Add hurt zone damage to detailed
Browse files Browse the repository at this point in the history
  • Loading branch information
oscar-wos committed Jul 3, 2024
1 parent d09759a commit 5b87275
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"campEnabled": "Camp Zones {olive}enabled{white}",
"delayRemaining": " in {green}{0}{white} second(s)",
"rushDelayRemaining": " {red}disabled{white} in {green}{0}{white} second(s)",
"hurtDamage": " for {green}{0}{white} damage",
"zone.Bounce": "Bounce",
"zone.Hurt": "Hurt",
"zone.Kill": "Kill",
Expand Down
6 changes: 6 additions & 0 deletions src/AntiRush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ private bool PrintAction(CCSPlayerController controller, Zone zone)

return true;
}

if (zone.Type == ZoneType.Hurt)
{
controller.PrintToChat($"{Prefix}{zone.ToString(Localizer)}{Localizer["hurtDamage", zone.Damage]}");
return true;
}

controller.PrintToChat($"{Prefix}{zone.ToString(Localizer)}");
return true;
Expand Down

0 comments on commit 5b87275

Please sign in to comment.