Code cleanup (#195)
This commit is contained in:
parent
b476bcfd24
commit
0926b5abaa
86 changed files with 740 additions and 1635 deletions
|
|
@ -23,9 +23,9 @@ namespace Server.Items
|
|||
{
|
||||
Delete();
|
||||
|
||||
var i = Utility.Random(from.BAC >= 5 ? 6 : 5) switch
|
||||
Item i = Utility.Random(from.BAC >= 5 ? 6 : 5) switch
|
||||
{
|
||||
0 => (Item)new OrigamiButterfly(),
|
||||
0 => new OrigamiButterfly(),
|
||||
1 => new OrigamiSwan(),
|
||||
2 => new OrigamiFrog(),
|
||||
3 => new OrigamiShape(),
|
||||
|
|
|
|||
|
|
@ -565,10 +565,7 @@ namespace Server.Items
|
|||
AddHtml(255, 180, 150, 20, message.Time.ToString("yyyy-MM-dd HH:mm:ss"));
|
||||
|
||||
Mobile poster = message.Poster;
|
||||
string name = poster?.Name;
|
||||
|
||||
if (name == null || (name = name.Trim()).Length == 0)
|
||||
name = "Someone";
|
||||
string name = poster?.Name?.Trim().IsNullOrDefault("Someone");
|
||||
|
||||
AddHtml(255, 200, 150, 20, name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue