Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)
This commit is contained in:
parent
e748af4430
commit
513e54f70e
1094 changed files with 15913 additions and 21892 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue