fix: Update LabelTo, SendMessage, etc to Interpolated Strings (#1283)
This commit is contained in:
parent
0facd73842
commit
537526a328
94 changed files with 514 additions and 769 deletions
|
|
@ -795,11 +795,14 @@ namespace Server.Accounting
|
|||
var ts = YoungDuration - acc.TotalGameTime;
|
||||
var hours = Math.Max((int)ts.TotalHours, 0);
|
||||
|
||||
m.SendAsciiMessage(
|
||||
"You will enjoy the benefits and relatively safe status of a young player for {0} more hour{1}.",
|
||||
hours,
|
||||
hours != 1 ? "s" : ""
|
||||
);
|
||||
if (hours == 1)
|
||||
{
|
||||
m.SendAsciiMessage($"You will enjoy the benefits and relatively safe status of a young player for {hours} more hour.");
|
||||
}
|
||||
else
|
||||
{
|
||||
m.SendAsciiMessage($"You will enjoy the benefits and relatively safe status of a young player for {hours} more hours.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue