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

@ -6,8 +6,7 @@ namespace Server.Items
{
public abstract class BasePigmentsOfTokuno : Item, IUsesRemaining
{
private static Type[] m_Glasses = new[]
{
private static Type[] m_Glasses = {
typeof( MaritimeGlasses ),
typeof( WizardsGlasses ),
typeof( TradeGlasses ),
@ -22,8 +21,7 @@ namespace Server.Items
typeof( AnthropomorphistGlasses )
};
private static Type[] m_Replicas = new[]
{
private static Type[] m_Replicas = {
typeof( ANecromancerShroud ),
typeof( BraveKnightOfTheBritannia ),
typeof( CaptainJohnsHat ),
@ -49,8 +47,7 @@ namespace Server.Items
typeof( Subdue )
};
private static Type[] m_DyableHeritageItems = new[]
{
private static Type[] m_DyableHeritageItems = {
typeof( ChargerOfTheFallen ),
typeof( SamuraiHelm ),
typeof( HolySword ),

View file

@ -393,8 +393,7 @@ namespace Server.Items
public class PigmentsOfTokuno : BasePigmentsOfTokuno
{
private static int[][] m_Table = new[]
{
private static int[][] m_Table = {
// Hue, Label
new[]{ /*PigmentType.None,*/ 0, -1 },
new[]{ /*PigmentType.ParagonGold,*/ 0x501, 1070987 },

View file

@ -625,8 +625,7 @@ namespace Server.Items
public class AncientUrn : Item
{
private static string[] m_Names = new[]
{
private static string[] m_Names = {
"Akira",
"Avaniaga",
"Aya",
@ -917,8 +916,7 @@ namespace Server.Items
public class LesserPigmentsOfTokuno : BasePigmentsOfTokuno
{
private static int[][] m_Table = new[]
{
private static int[][] m_Table = {
// Hue, Label
new[]{ /*PigmentType.None,*/ 0, -1 },
new[]{ /*PigmentType.PaleOrange,*/ 0x02E, 1071458 },

View file

@ -21,8 +21,7 @@ namespace Server.Misc
{
public const int ItemsPerReward = 10;
private static Type[] m_LesserArtifactsTotal = new[]
{
private static Type[] m_LesserArtifactsTotal = {
typeof( AncientFarmersKasa ), typeof( AncientSamuraiDo ), typeof( ArmsOfTacticalExcellence ), typeof( BlackLotusHood ),
typeof( DaimyosHelm ), typeof( DemonForks ), typeof( DragonNunchaku ), typeof( Exiler ), typeof( GlovesOfTheSun ),
typeof( HanzosBow ), typeof( LegsOfStability ), typeof( PeasantsBokuto ), typeof( PilferedDancerFans ), typeof( TheDestroyer ),
@ -47,8 +46,7 @@ namespace Server.Misc
set => _RewardEra = value;
}
private static Type[][] m_LesserArtifacts = new[]
{
private static Type[][] m_LesserArtifacts = {
// ToT One Rewards
new[] {
typeof( AncientFarmersKasa ), typeof( AncientSamuraiDo ), typeof( ArmsOfTacticalExcellence ), typeof( BlackLotusHood ),
@ -432,8 +430,7 @@ namespace Server.Gumps
}
#region ToT Normal Rewards Table
private static TypeTileButtonInfo[][] m_NormalRewards = new[]
{
private static TypeTileButtonInfo[][] m_NormalRewards = {
// ToT One Rewards
new[] {
new TypeTileButtonInfo( typeof( SwordsOfProsperity ), 0x27A9, 1070963, 1071002 ),
@ -478,8 +475,7 @@ namespace Server.Gumps
public static TypeTileButtonInfo[][] NormalRewards => m_NormalRewards;
#region ToT Pigment Rewards Table
private static PigmentsTileButtonInfo[][] m_PigmentRewards = new[]
{
private static PigmentsTileButtonInfo[][] m_PigmentRewards = {
// ToT One Pigment Rewards
new[] {
new PigmentsTileButtonInfo( PigmentType.ParagonGold ),