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
|
|
@ -10,12 +10,7 @@ namespace Server.Items
|
|||
private int m_UsesRemaining;
|
||||
|
||||
[Constructible]
|
||||
public FukiyaDarts() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public FukiyaDarts(int amount) : base(0x2806)
|
||||
public FukiyaDarts(int amount = 1) : base(0x2806)
|
||||
{
|
||||
Weight = 1.0;
|
||||
|
||||
|
|
@ -116,4 +111,4 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -270,8 +270,7 @@ namespace Server.Items
|
|||
{
|
||||
Item item = weapon as Item;
|
||||
|
||||
if (!item.Deleted && item.RootParent == from) return true;
|
||||
return false;
|
||||
return !item.Deleted && item.RootParent == from;
|
||||
}
|
||||
|
||||
public class LoadEntry : ContextMenuEntry
|
||||
|
|
|
|||
|
|
@ -11,12 +11,7 @@ namespace Server.Items
|
|||
private int m_UsesRemaining;
|
||||
|
||||
[Constructible]
|
||||
public Shuriken() : this(1)
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public Shuriken(int amount) : base(0x27AC)
|
||||
public Shuriken(int amount = 1) : base(0x27AC)
|
||||
{
|
||||
Weight = 1.0;
|
||||
|
||||
|
|
@ -117,4 +112,4 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue