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
|
|
@ -672,7 +672,14 @@ public class Container : Item
|
|||
|
||||
if (CheckContentDisplay(from))
|
||||
{
|
||||
LabelTo(from, "({0} item{2}, {1} stones)", TotalItems, TotalWeight, TotalItems != 1 ? "s" : string.Empty);
|
||||
if (TotalItems == 1)
|
||||
{
|
||||
LabelTo(from, $"({TotalItems} item, {TotalWeight} stones)");
|
||||
}
|
||||
else
|
||||
{
|
||||
LabelTo(from, $"({TotalItems} items, {TotalWeight} stones)");
|
||||
}
|
||||
}
|
||||
|
||||
// LabelTo( from, 1050044, String.Format( "{0}\t{1}", TotalItems.ToString(), TotalWeight.ToString() ) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue