Skip to content

Commit

Permalink
refactor: Update placeholder name to ColorName
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Sep 21, 2024
1 parent 73dfc71 commit 64bdeff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Application/Common/Resources/Messages.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Application/Common/Resources/Messages.resx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
<value>{PlayerName} has returned the {TeamName} team's {ColorName} flag to its base! Keep up the defense!</value>
</data>
<data name="OnFlagScore" xml:space="preserve">
<value>{PlayerName} has brought the {RivalName} flag to the {TeamName} team's base. Point scored!</value>
<value>{PlayerName} has brought the {ColorName} flag to the {TeamName} team's base. Point scored!</value>
</data>
<data name="OnFlagTaken" xml:space="preserve">
<value>{PlayerName} has taken the {TeamName} team's {ColorName} flag! Keep an eye on the score!</value>
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Teams/Flags/Events/OnFlagScore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void Handle(Team team, Player player)
{
PlayerName = player.Name,
TeamName = team.Name,
RivalName = team.RivalTeam.ColorName
ColorName = team.RivalTeam.ColorName
});
worldService.SendClientMessage(team.ColorHex, message);
worldService.GameText($"~n~~n~~n~{team.GameText}{team.ColorName} team scores!", 5000, 3);
Expand Down

0 comments on commit 64bdeff

Please sign in to comment.