Adds testing (#118)
This commit is contained in:
parent
e200f37e75
commit
60ee5eadd2
10 changed files with 143 additions and 13 deletions
|
|
@ -1130,13 +1130,8 @@ namespace Server
|
|||
|
||||
public bool CanSpawnMobile(Point2D p, int z) => CanSpawnMobile(p.m_X, p.m_Y, z);
|
||||
|
||||
public bool CanSpawnMobile(int x, int y, int z)
|
||||
{
|
||||
if (!Region.Find(new Point3D(x, y, z), this).AllowSpawn())
|
||||
return false;
|
||||
|
||||
return CanFit(x, y, z, 16);
|
||||
}
|
||||
public bool CanSpawnMobile(int x, int y, int z) =>
|
||||
Region.Find(new Point3D(x, y, z), this).AllowSpawn() && CanFit(x, y, z, 16);
|
||||
|
||||
public Sector GetSector(Point3D p) => InternalGetSector(p.m_X >> SectorShift, p.m_Y >> SectorShift);
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ namespace Server
|
|||
{
|
||||
get
|
||||
{
|
||||
while (World.FindMobile(LastMobile = LastMobile + 1) != null)
|
||||
while (World.FindMobile(LastMobile += 1) != null)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue