C# 9 Cleanup (#325)

- [X] Removes EventArgs - not needed
- [X] Merges sequential checks
- [X] Removes redundant type declarations
This commit is contained in:
Kamron Batman 2020-11-27 00:29:21 -08:00 • committed by GitHub
parent 351611a23a
commit 3551d962f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
417 changed files with 2209 additions and 2213 deletions

View file

@ -2,7 +2,7 @@ namespace Server.Items
{
public class GrimmochJournal1 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"The daily journal of Grimmoch Drummel",
"Grimmoch",
new BookPageInfo(
@ -85,7 +85,7 @@ namespace Server.Items
public class GrimmochJournal2 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"The daily journal of Grimmoch Drummel",
"Grimmoch",
new BookPageInfo(
@ -185,7 +185,7 @@ namespace Server.Items
public class GrimmochJournal3 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"The daily journal of Grimmoch Drummel",
"Grimmoch",
new BookPageInfo(
@ -282,7 +282,7 @@ namespace Server.Items
public class GrimmochJournal6 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"The daily journal of Grimmoch Drummel",
"Grimmoch",
new BookPageInfo(
@ -375,7 +375,7 @@ namespace Server.Items
public class GrimmochJournal7 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"The daily journal of Grimmoch Drummel",
"Grimmoch",
new BookPageInfo(
@ -457,7 +457,7 @@ namespace Server.Items
public class GrimmochJournal11 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"The daily journal of Grimmoch Drummel",
"Grimmoch",
new BookPageInfo(
@ -523,7 +523,7 @@ namespace Server.Items
public class GrimmochJournal14 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"The daily journal of Grimmoch Drummel",
"Grimmoch",
new BookPageInfo(
@ -605,7 +605,7 @@ namespace Server.Items
public class GrimmochJournal17 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"The daily journal of Grimmoch Drummel",
"Grimmoch",
new BookPageInfo(
@ -691,7 +691,7 @@ namespace Server.Items
public class GrimmochJournal23 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"The daily journal of Grimmoch Drummel",
"Grimmoch",
new BookPageInfo(

View file

@ -2,7 +2,7 @@ namespace Server.Items
{
public class LysanderNotebook1 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Lysander's Notebook",
"L. Gathenwale",
new BookPageInfo(
@ -58,7 +58,7 @@ namespace Server.Items
public class LysanderNotebook2 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Lysander's Notebook",
"L. Gathenwale",
new BookPageInfo(
@ -147,7 +147,7 @@ namespace Server.Items
public class LysanderNotebook3 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Lysander's Notebook",
"L. Gathenwale",
new BookPageInfo(
@ -230,7 +230,7 @@ namespace Server.Items
public class LysanderNotebook7 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Lysander's Notebook",
"L. Gathenwale",
new BookPageInfo(
@ -328,7 +328,7 @@ namespace Server.Items
public class LysanderNotebook8 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Lysander's Notebook",
"L. Gathenwale",
new BookPageInfo(
@ -417,7 +417,7 @@ namespace Server.Items
public class LysanderNotebook11 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Lysander's Notebook",
"L. Gathenwale",
new BookPageInfo(

View file

@ -2,7 +2,7 @@ namespace Server.Items
{
public class TavarasJournal1 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -89,7 +89,7 @@ namespace Server.Items
public class TavarasJournal2 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -209,7 +209,7 @@ namespace Server.Items
public class TavarasJournal3 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -300,7 +300,7 @@ namespace Server.Items
public class TavarasJournal6 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -403,7 +403,7 @@ namespace Server.Items
public class TavarasJournal7 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -495,7 +495,7 @@ namespace Server.Items
public class TavarasJournal8 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -605,7 +605,7 @@ namespace Server.Items
public class TavarasJournal9 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -693,7 +693,7 @@ namespace Server.Items
public class TavarasJournal11 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -803,7 +803,7 @@ namespace Server.Items
public class TavarasJournal14 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -905,7 +905,7 @@ namespace Server.Items
public class TavarasJournal16 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -1018,7 +1018,7 @@ namespace Server.Items
public class TavarasJournal16b : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -1121,7 +1121,7 @@ namespace Server.Items
public class TavarasJournal17 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(
@ -1188,7 +1188,7 @@ namespace Server.Items
public class TavarasJournal19 : BaseBook
{
public static readonly BookContent Content = new BookContent(
public static readonly BookContent Content = new(
"Journal: Discovery of the Tomb",
"Tavara Sewel",
new BookPageInfo(

View file

@ -203,7 +203,7 @@ namespace Server.Items
public readonly TimeSpan CleanupTime = TimeSpan.FromHours(1.0);
private readonly Dictionary<Mobile, PuzzleChestSolutionAndTime> m_Guesses =
new Dictionary<Mobile, PuzzleChestSolutionAndTime>();
new();
private PuzzleChestSolution m_Solution;