Formatting #2 (#59)

This commit is contained in:
Kamron Batman 2019-10-05 00:37:03 -07:00 committed by GitHub
parent 096d39609e
commit 8e9221bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
400 changed files with 3688 additions and 5969 deletions

View file

@ -335,21 +335,14 @@ namespace Server.Items
t.Start();
m_Table[c] = t;
switch (c.ItemID)
c.ItemID = c.ItemID switch
{
case 0xA4D:
c.ItemID = 0xA4C;
break;
case 0xA4F:
c.ItemID = 0xA4E;
break;
case 0xA51:
c.ItemID = 0xA50;
break;
case 0xA53:
c.ItemID = 0xA52;
break;
}
0xA4D => 0xA4C,
0xA4F => 0xA4E,
0xA51 => 0xA50,
0xA53 => 0xA52,
_ => c.ItemID
};
}
return true;
@ -364,21 +357,14 @@ namespace Server.Items
}
if (c is Armoire || c is FancyArmoire)
switch (c.ItemID)
c.ItemID = c.ItemID switch
{
case 0xA4C:
c.ItemID = 0xA4D;
break;
case 0xA4E:
c.ItemID = 0xA4F;
break;
case 0xA50:
c.ItemID = 0xA51;
break;
case 0xA52:
c.ItemID = 0xA53;
break;
}
0xA4C => 0xA4D,
0xA4E => 0xA4F,
0xA50 => 0xA51,
0xA52 => 0xA53,
_ => c.ItemID
};
}
}