Fixes brace style (#248)

This commit is contained in:
Kamron Batman 2020-09-13 21:49:46 -07:00 • committed by GitHub
parent a236617ad9
commit 8149620b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1503 changed files with 28575 additions and 1717 deletions

View file

@ -43,7 +43,9 @@ namespace Server.Items
get
{
if (m_Resource >= CraftResource.OakWood && m_Resource <= CraftResource.YewWood)
{
return 1075052 + ((int)m_Resource - (int)CraftResource.OakWood);
}
return m_Resource switch
{
@ -66,9 +68,13 @@ namespace Server.Items
var num = CraftResources.GetLocalizationNumber(m_Resource);
if (num > 0)
{
list.Add(num);
}
else
{
list.Add(CraftResources.GetName(m_Resource));
}
}
}
@ -98,10 +104,14 @@ namespace Server.Items
}
if (version == 0 && Weight == 0.1 || version <= 2 && Weight == 2)
{
Weight = -1;
}
if (version <= 1)
{
m_Resource = CraftResource.RegularWood;
}
}
}