Changes properties to use automatic property initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:23:29 -07:00
parent f0a48ad431
commit 06fa31a7bf
623 changed files with 13072 additions and 19304 deletions

View file

@ -278,13 +278,7 @@ namespace Server.Spells
return TimeSpan.FromSeconds( caster.Skills[SkillName.Magery].Value * 1.2 );
}
private static bool m_DisableSkillCheck;
public static bool DisableSkillCheck
{
get => m_DisableSkillCheck;
set => m_DisableSkillCheck = value;
}
public static bool DisableSkillCheck { get; set; }
public static double GetOffsetScalar( Mobile caster, Mobile target, bool curse )
{
@ -307,7 +301,7 @@ namespace Server.Spells
{
if ( Core.AOS )
{
if ( !m_DisableSkillCheck )
if ( !DisableSkillCheck )
{
caster.CheckSkill( SkillName.EvalInt, 0.0, 120.0 );
@ -1387,22 +1381,20 @@ namespace Server.Spells
public class TransformContext
{
private Timer m_Timer;
private List<ResistanceMod> m_Mods;
private Type m_Type;
private ITransformationSpell m_Spell;
public Timer Timer { get; }
public Timer Timer => m_Timer;
public List<ResistanceMod> Mods => m_Mods;
public Type Type => m_Type;
public ITransformationSpell Spell => m_Spell;
public List<ResistanceMod> Mods { get; }
public Type Type { get; }
public ITransformationSpell Spell { get; }
public TransformContext( Timer timer, List<ResistanceMod> mods, Type type, ITransformationSpell spell )
{
m_Timer = timer;
m_Mods = mods;
m_Type = type;
m_Spell = spell;
Timer = timer;
Mods = mods;
Type = type;
Spell = spell;
}
}