Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)

This commit is contained in:
Kamron Batman 2019-03-11 14:29:59 -07:00 • committed by GitHub
parent e748af4430
commit 513e54f70e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1094 changed files with 15913 additions and 21892 deletions

View file

@ -6,13 +6,7 @@
private static int fItemID = 0x2004;
[Constructible]
public Bucket()
: this(false)
{
}
[Constructible]
public Bucket(bool filled)
public Bucket(bool filled = false)
: base(filled ? fItemID : vItemID, filled)
{
}
@ -40,4 +34,4 @@
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,13 +6,7 @@
private static int fItemID = 0x154d;
[Constructible]
public WaterBarrel()
: this(false)
{
}
[Constructible]
public WaterBarrel(bool filled)
public WaterBarrel(bool filled = false)
: base(filled ? fItemID : vItemID, filled)
{
}
@ -42,4 +36,4 @@
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,13 +6,7 @@
private static int fItemID = 0xe7b;
[Constructible]
public Tub()
: this(false)
{
}
[Constructible]
public Tub(bool filled)
public Tub(bool filled = false)
: base(filled ? fItemID : vItemID, filled)
{
}
@ -40,4 +34,4 @@
int version = reader.ReadInt();
}
}
}
}