Modernization Fixes & Updates to Default Values (#3)
This commit is contained in:
parent
445eddff68
commit
dcf64091b1
768 changed files with 10507 additions and 14196 deletions
|
|
@ -1,5 +1,7 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
|
|
@ -70,7 +72,7 @@ namespace Server.Mobiles
|
|||
|
||||
public override double GetFightModeRanking(Mobile m, FightMode acqType, bool bPlayerOnly)
|
||||
{
|
||||
return (m.Int + m.Skills[SkillName.Magery].Value) / Math.Max(GetDistanceToSqrt(m), 1.0);
|
||||
return (m.Int + m.Skills.Magery.Value) / Math.Max(GetDistanceToSqrt(m), 1.0);
|
||||
}
|
||||
|
||||
public override int GetAngerSound()
|
||||
|
|
@ -87,19 +89,17 @@ namespace Server.Mobiles
|
|||
{
|
||||
if (Core.SE && Summoned)
|
||||
{
|
||||
ArrayList spirtsOrVortexes = new ArrayList();
|
||||
IPooledEnumerable<Mobile> eable = GetMobilesInRange(5);
|
||||
List<Mobile> spiritsOrVortexes = eable
|
||||
.Where(m => (m is EnergyVortex || m is BladeSpirits) && ((BaseCreature)m).Summoned).ToList();
|
||||
|
||||
foreach (Mobile m in GetMobilesInRange(5))
|
||||
if (m is EnergyVortex || m is BladeSpirits)
|
||||
if (((BaseCreature)m).Summoned)
|
||||
spirtsOrVortexes.Add(m);
|
||||
eable.Free();
|
||||
|
||||
while (spirtsOrVortexes.Count > 6)
|
||||
while (spiritsOrVortexes.Count > 6)
|
||||
{
|
||||
int index = Utility.Random(spirtsOrVortexes.Count);
|
||||
//TODO: Confirm if it's the dispel with all the pretty effects or just a deletion of it.
|
||||
Dispel((Mobile)spirtsOrVortexes[index]);
|
||||
spirtsOrVortexes.RemoveAt(index);
|
||||
int index = Utility.Random(spiritsOrVortexes.Count);
|
||||
Dispel(spiritsOrVortexes[index]);
|
||||
spiritsOrVortexes.RemoveAt(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -123,4 +123,4 @@ namespace Server.Mobiles
|
|||
BaseSoundID = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue