Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue