Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 • committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -12,10 +12,10 @@ namespace Server.Spells.Spellweaving
-1
);
public override TimeSpan CastDelayBase { get { return TimeSpan.FromSeconds( 1.0 ); } }
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds( 1.0 );
public override double RequiredSkill { get { return 10.0; } }
public override int RequiredMana { get { return 32; } }
public override double RequiredSkill => 10.0;
public override int RequiredMana => 32;
public ImmolatingWeaponSpell( Mobile caster, Item scroll )
: base( caster, scroll, m_Info )
@ -74,9 +74,7 @@ namespace Server.Spells.Spellweaving
public static int GetImmolatingDamage( BaseWeapon weapon )
{
ImmolatingWeaponEntry entry;
if ( m_WeaponDamageTable.TryGetValue( weapon, out entry ) )
if (m_WeaponDamageTable.TryGetValue( weapon, out ImmolatingWeaponEntry entry ))
return entry.m_Damage;
return 0;
@ -89,17 +87,13 @@ namespace Server.Spells.Spellweaving
private static void FinishEffect( DelayedEffectEntry effect )
{
ImmolatingWeaponEntry entry;
if ( m_WeaponDamageTable.TryGetValue( effect.m_Weapon, out entry ) )
if (m_WeaponDamageTable.TryGetValue( effect.m_Weapon, out ImmolatingWeaponEntry entry ))
AOS.Damage( effect.m_Target, entry.m_Caster, entry.m_Damage, 0, 100, 0, 0, 0 );
}
public static void StopImmolating( BaseWeapon weapon )
{
ImmolatingWeaponEntry entry;
if ( m_WeaponDamageTable.TryGetValue( weapon, out entry ) )
if (m_WeaponDamageTable.TryGetValue( weapon, out ImmolatingWeaponEntry entry ))
{
if ( entry.m_Caster != null )
entry.m_Caster.PlaySound( 0x27 );