Fixes implicit array initializers

This commit is contained in:
Kamron Batman 2018-09-14 13:14:20 -07:00
parent 7d3a0ca265
commit fee83ce560
189 changed files with 440 additions and 808 deletions

View file

@ -68,8 +68,7 @@ namespace Server.Mobiles
{
if ( from != null && !willKill && amount > 5 && from.Player && 5 > Utility.Random( 100 ) )
{
string[] toSay = new[]
{
string[] toSay = {
"{0}!! You will have to do better than that!",
"{0}!! Prepare to meet your doom!",
"{0}!! My armies will crush you!",

View file

@ -126,7 +126,7 @@ namespace Server.Mobiles
DoBeneficial( toBuff );
object[] state = new object[]{ toBuff, toBuff.HitsMaxSeed, toBuff.RawStr, toBuff.RawDex };
object[] state = { toBuff, toBuff.HitsMaxSeed, toBuff.RawStr, toBuff.RawDex };
SpellHelper.Turn( this, toBuff );

View file

@ -53,8 +53,7 @@ namespace Server.Mobiles
Talk( ferret );
}
private static string[] m_Vocabulary = new[]
{
private static string[] m_Vocabulary = {
"dook",
"dook dook",
"dook dook dook!"

View file

@ -112,8 +112,7 @@ namespace Server.Mobiles
public static Type[] Artifacts => m_Artifacts;
private static Type[] m_Artifacts = new[]
{
private static Type[] m_Artifacts = {
// Decorations
typeof( CandelabraOfSouls ),
typeof( GhostShipAnchor ),

View file

@ -4,8 +4,7 @@ namespace Server.Mobiles
public class OphidianArchmage : BaseCreature
{
public override string CorpseName => "an ophidian corpse";
private static string[] m_Names = new[]
{
private static string[] m_Names = {
"an ophidian justicar",
"an ophidian zealot"
};

View file

@ -4,8 +4,7 @@ namespace Server.Mobiles
public class OphidianMage : BaseCreature
{
public override string CorpseName => "an ophidian corpse";
private static string[] m_Names = new[]
{
private static string[] m_Names = {
"an ophidian apprentice mage",
"an ophidian shaman"
};

View file

@ -6,8 +6,7 @@ namespace Server.Mobiles
public class OphidianKnight : BaseCreature
{
public override string CorpseName => "an ophidian corpse";
private static string[] m_Names = new[]
{
private static string[] m_Names = {
"an ophidian knight-errant",
"an ophidian avenger"
};

View file

@ -3,8 +3,7 @@ namespace Server.Mobiles
public class OphidianWarrior : BaseCreature
{
public override string CorpseName => "an ophidian corpse";
private static string[] m_Names = new[]
{
private static string[] m_Names = {
"an ophidian warrior",
"an ophidian enforcer"
};