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
|
|
@ -22,14 +22,9 @@ namespace Server.Mobiles
|
|||
|
||||
public abstract Mobile Focus{ get; set; }
|
||||
|
||||
public static void Spawn(Mobile caller, Mobile target)
|
||||
public static void Spawn(Mobile caller, Mobile target, int amount = 1, bool onlyAdditional = false)
|
||||
{
|
||||
Spawn(caller, target, 1, false);
|
||||
}
|
||||
|
||||
public static void Spawn(Mobile caller, Mobile target, int amount, bool onlyAdditional)
|
||||
{
|
||||
if (target == null || target.Deleted)
|
||||
if (target?.Deleted != false)
|
||||
return;
|
||||
|
||||
foreach (Mobile m in target.GetMobilesInRange(15))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue