Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -12,23 +12,13 @@ namespace Server.Movement
|
|||
|
||||
private const TileFlag ImpassableSurface = TileFlag.Impassable | TileFlag.Surface;
|
||||
|
||||
private static bool m_AlwaysIgnoreDoors;
|
||||
private static bool m_IgnoreMovableImpassables;
|
||||
private static bool m_IgnoreSpellFields;
|
||||
private static Point3D m_Goal;
|
||||
public static bool AlwaysIgnoreDoors { get; set; }
|
||||
|
||||
public static bool AlwaysIgnoreDoors{ get => m_AlwaysIgnoreDoors;
|
||||
set => m_AlwaysIgnoreDoors = value;
|
||||
}
|
||||
public static bool IgnoreMovableImpassables{ get => m_IgnoreMovableImpassables;
|
||||
set => m_IgnoreMovableImpassables = value;
|
||||
}
|
||||
public static bool IgnoreSpellFields{ get => m_IgnoreSpellFields;
|
||||
set => m_IgnoreSpellFields = value;
|
||||
}
|
||||
public static Point3D Goal{ get => m_Goal;
|
||||
set => m_Goal = value;
|
||||
}
|
||||
public static bool IgnoreMovableImpassables { get; set; }
|
||||
|
||||
public static bool IgnoreSpellFields { get; set; }
|
||||
|
||||
public static Point3D Goal { get; set; }
|
||||
|
||||
public static void Configure()
|
||||
{
|
||||
|
|
@ -120,7 +110,7 @@ namespace Server.Movement
|
|||
int stepTop = startTop + StepHeight;
|
||||
int checkTop = startZ + PersonHeight;
|
||||
|
||||
bool ignoreDoors = ( m_AlwaysIgnoreDoors || !m.Alive || m.Body.BodyID == 0x3DB || m.IsDeadBondedPet );
|
||||
bool ignoreDoors = ( AlwaysIgnoreDoors || !m.Alive || m.Body.BodyID == 0x3DB || m.IsDeadBondedPet );
|
||||
bool ignoreSpellFields = m is PlayerMobile && map != Map.Felucca;
|
||||
|
||||
#region Tiles
|
||||
|
|
@ -311,7 +301,7 @@ namespace Server.Movement
|
|||
List<Item> itemsLeft = m_Pools[2];
|
||||
List<Item> itemsRight = m_Pools[3];
|
||||
|
||||
bool ignoreMovableImpassables = m_IgnoreMovableImpassables;
|
||||
bool ignoreMovableImpassables = IgnoreMovableImpassables;
|
||||
TileFlag reqFlags = ImpassableSurface;
|
||||
|
||||
if ( m.CanSwim )
|
||||
|
|
@ -321,7 +311,7 @@ namespace Server.Movement
|
|||
List<Mobile> mobsLeft = m_MobPools[1];
|
||||
List<Mobile> mobsRight = m_MobPools[2];
|
||||
|
||||
bool checkMobs = ( m is BaseCreature creature && !creature.Controlled && ( xForward != m_Goal.X || yForward != m_Goal.Y ) );
|
||||
bool checkMobs = ( m is BaseCreature creature && !creature.Controlled && ( xForward != Goal.X || yForward != Goal.Y ) );
|
||||
|
||||
if ( checkDiagonals )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue