Code cleanup (#188)
This commit is contained in:
parent
df53c16620
commit
010fd9402a
185 changed files with 1052 additions and 1271 deletions
|
|
@ -55,7 +55,7 @@ namespace Server.Mobiles
|
|||
public override void MoveToWorld(Point3D loc, Map map)
|
||||
{
|
||||
base.MoveToWorld(loc, map);
|
||||
Timer.DelayCall(TimeSpan.Zero, DoEffects);
|
||||
Timer.DelayCall(DoEffects);
|
||||
}
|
||||
|
||||
public void DoEffects()
|
||||
|
|
@ -82,4 +82,4 @@ namespace Server.Mobiles
|
|||
Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,14 +33,9 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
int sdiBonus = AosAttributes.GetValue(Caster, AosAttribute.SpellDamage);
|
||||
|
||||
int pvmDamage = damage * (100 + sdiBonus);
|
||||
pvmDamage /= 100;
|
||||
int pvmDamage = damage * (100 + sdiBonus) / 100;
|
||||
|
||||
if (sdiBonus > 15)
|
||||
sdiBonus = 15;
|
||||
|
||||
int pvpDamage = damage * (100 + sdiBonus);
|
||||
pvpDamage /= 100;
|
||||
int pvpDamage = damage * (100 + Math.Min(sdiBonus, 15)) / 100;
|
||||
|
||||
int range = 2 + FocusLevel;
|
||||
TimeSpan duration = TimeSpan.FromSeconds(5 + FocusLevel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue