Formatting FIxes (#58)

This commit is contained in:
Kamron Batman 2019-10-04 23:08:13 -07:00 committed by GitHub
parent 57fb9fb525
commit 096d39609e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1318 changed files with 11633 additions and 22129 deletions

View file

@ -186,10 +186,7 @@ namespace Server.Regions
return mobile;
}
protected virtual Mobile CreateMobile()
{
return (Mobile)Activator.CreateInstance(Type);
}
protected virtual Mobile CreateMobile() => (Mobile)Activator.CreateInstance(Type);
}
public class SpawnItem : SpawnType
@ -242,10 +239,7 @@ namespace Server.Regions
return item;
}
protected virtual Item CreateItem()
{
return (Item)Activator.CreateInstance(Type);
}
protected virtual Item CreateItem() => (Item)Activator.CreateInstance(Type);
}
public class SpawnTreasureChest : SpawnItem
@ -265,10 +259,7 @@ namespace Server.Regions
m_Height = TileData.ItemTable[ItemID & TileData.MaxItemValue].Height;
}
protected override Item CreateItem()
{
return new BaseTreasureChest(ItemID, Level);
}
protected override Item CreateItem() => new BaseTreasureChest(ItemID, Level);
}
public class SpawnGroupElement

View file

@ -84,10 +84,7 @@ namespace Server.Regions
CheckTimer();
}
public Point3D RandomSpawnLocation(int spawnHeight, bool land, bool water)
{
return Region.RandomSpawnLocation(spawnHeight, land, water, HomeLocation, HomeRange);
}
public Point3D RandomSpawnLocation(int spawnHeight, bool land, bool water) => Region.RandomSpawnLocation(spawnHeight, land, water, HomeLocation, HomeRange);
public void Start()
{

View file

@ -5,15 +5,9 @@ namespace Server.Regions
{
private static SpawnPersistence m_Instance;
private SpawnPersistence() : base(1)
{
Movable = false;
}
private SpawnPersistence() : base(1) => Movable = false;
public SpawnPersistence(Serial serial) : base(serial)
{
m_Instance = this;
}
public SpawnPersistence(Serial serial) : base(serial) => m_Instance = this;
public SpawnPersistence Instance => m_Instance;