Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 • committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -47,7 +47,7 @@ namespace Server.Engines.Quests.Samurai
typeof( Samurai.SeventhTrialReturnObjective )
};
public override Type[] TypeReferenceTable{ get{ return m_TypeReferenceTable; } }
public override Type[] TypeReferenceTable => m_TypeReferenceTable;
public override object Name
{
@ -78,10 +78,10 @@ namespace Server.Engines.Quests.Samurai
}
}
public override TimeSpan RestartDelay{ get{ return TimeSpan.MaxValue; } }
public override TimeSpan RestartDelay => TimeSpan.MaxValue;
public override bool IsTutorial => true;
public override int Picture{ get{ return 0x15D7; } }
public override int Picture => 0x15D7;
public HaochisTrialsQuest( PlayerMobile from ) : base( from )
{

View file

@ -6,7 +6,7 @@ namespace Server.Engines.Quests.Samurai
{
public class HaochisKatana : QuestItem
{
public override int LabelNumber{ get{ return 1063165; } } // Daimyo Haochi's Katana
public override int LabelNumber => 1063165; // Daimyo Haochi's Katana
[Constructible]
public HaochisKatana() : base( 0x13FF )
@ -43,4 +43,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -9,8 +9,8 @@ namespace Server.Engines.Quests.Samurai
{
private static readonly TimeSpan LitDuration = TimeSpan.FromSeconds( 20.0 );
public override int LitSound{ get{ return 0; } }
public override int UnlitSound{ get{ return 0; } }
public override int LitSound => 0;
public override int UnlitSound => 0;
[Constructible]
public HonorCandle()
@ -76,4 +76,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -65,7 +65,7 @@ namespace Server.Engines.Quests.Samurai
private int m_CursedSoulsKilled;
private int m_YoungRoninKilled;
public override int MaxProgress{ get{ return 3; } }
public override int MaxProgress => 3;
public override void OnKill( BaseCreature creature, Container corpse )
{
@ -410,7 +410,7 @@ namespace Server.Engines.Quests.Samurai
{
get
{
// Retrieve Daimyo Haochi’s katana from the treasure room.
// Retrieve Daimyo Haochi<EFBFBD>s katana from the treasure room.
return 1063072;
}
}
@ -514,7 +514,7 @@ namespace Server.Engines.Quests.Samurai
}
}
public override int MaxProgress{ get{ return 3; } }
public override int MaxProgress => 3;
public SeventhTrialIntroObjective()
{
@ -552,4 +552,4 @@ namespace Server.Engines.Quests.Samurai
System.AddConversation( new EndConversation() );
}
}
}
}