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

@ -3,17 +3,11 @@ namespace Server.Items
public class ScribeBag : Bag
{
[Constructible]
public ScribeBag() : this(1)
public ScribeBag(int amount = 5000)
{
Movable = true;
Hue = 0x105;
}
[Constructible]
public ScribeBag(int amount)
{
DropItem(new BagOfReagents(5000));
DropItem(new BlankScroll(500));
DropItem(new BagOfReagents(amount));
DropItem(new BlankScroll(amount));
}
public ScribeBag(Serial serial) : base(serial)
@ -36,4 +30,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}