Formatting FIxes (#58)
This commit is contained in:
parent
57fb9fb525
commit
096d39609e
1318 changed files with 11633 additions and 22129 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue