Fixes implicit array initializers
This commit is contained in:
parent
7d3a0ca265
commit
fee83ce560
189 changed files with 440 additions and 808 deletions
|
|
@ -231,11 +231,11 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
public static string[] m_BoolNames = new[]{ "True", "False" };
|
||||
public static object[] m_BoolValues = new object[]{ true, false };
|
||||
public static string[] m_BoolNames = { "True", "False" };
|
||||
public static object[] m_BoolValues = { true, false };
|
||||
|
||||
public static string[] m_PoisonNames = new[]{ "None", "Lesser", "Regular", "Greater", "Deadly", "Lethal" };
|
||||
public static object[] m_PoisonValues = new object[]{ null, Poison.Lesser, Poison.Regular, Poison.Greater, Poison.Deadly, Poison.Lethal };
|
||||
public static string[] m_PoisonNames = { "None", "Lesser", "Regular", "Greater", "Deadly", "Lethal" };
|
||||
public static object[] m_PoisonValues = { null, Poison.Lesser, Poison.Regular, Poison.Greater, Poison.Deadly, Poison.Lethal };
|
||||
|
||||
public override void OnResponse( NetState state, RelayInfo info )
|
||||
{
|
||||
|
|
@ -415,14 +415,12 @@ namespace Server.Gumps
|
|||
private static Type typeofPropertyObject = typeof( PropertyObjectAttribute );
|
||||
private static Type typeofNoSort = typeof( NoSortAttribute );
|
||||
|
||||
private static Type[] typeofReal = new[]
|
||||
{
|
||||
private static Type[] typeofReal = {
|
||||
typeof( Single ),
|
||||
typeof( Double )
|
||||
};
|
||||
|
||||
private static Type[] typeofNumeric = new[]
|
||||
{
|
||||
private static Type[] typeofNumeric = {
|
||||
typeof( Byte ),
|
||||
typeof( Int16 ),
|
||||
typeof( Int32 ),
|
||||
|
|
|
|||
|
|
@ -238,8 +238,7 @@ namespace Server.Gumps
|
|||
public string Name => m_Name;
|
||||
public string DisplayName => m_DisplayName;
|
||||
|
||||
private static string[] m_GroupNames = new[]
|
||||
{
|
||||
private static string[] m_GroupNames = {
|
||||
"ogres_", "ettins_", "walking_dead_", "gargoyles_",
|
||||
"orcs_", "flails_", "daemons_", "arachnids_",
|
||||
"dragons_", "elementals_", "serpents_", "gazers_",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue