fix: Fixes NPC slowness. (#955)

* Adds the following configurations:
  * `movement.delay.npcMinDelay` - 0.1 - Pets or Non-monster NPCs
  * `movement.delay.npcMaxDelay` - 0.4 - Pets or Non-monster NPCs
  * `movement.delay.monsterMinDelay` - 0.4 - Non-pet Monsters or NPC vs Player Combat
  * `movement.delay.monsterMaxDelay` - 0.8 - Non-pet Monsters or NPC vs Player Combat
  * `movement.delay.monsterMinDex` - 150 - Dex maximum for delay by dex
  * `movement.delay.MinDex` - 190 - Dex maximum for delay by dex
This commit is contained in:
Kamron Batman 2022-03-10 22:55:06 -08:00 • committed by GitHub
parent 44bd129734
commit bdee7bc671
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
357 changed files with 767 additions and 962 deletions

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class AbysmalHorror : BaseCreature
{
[Constructible]
public AbysmalHorror() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
public AbysmalHorror() : base(AIType.AI_Mage)
{
Body = 312;
BaseSoundID = 0x451;

View file

@ -3,7 +3,7 @@ namespace Server.Mobiles
public class BoneDemon : BaseCreature
{
[Constructible]
public BoneDemon() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
public BoneDemon() : base(AIType.AI_Mage)
{
Body = 308;
BaseSoundID = 0x48D;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class CrystalElemental : BaseCreature
{
[Constructible]
public CrystalElemental() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
public CrystalElemental() : base(AIType.AI_Mage)
{
Body = 300;
BaseSoundID = 278;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class DarknightCreeper : BaseCreature
{
[Constructible]
public DarknightCreeper() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
public DarknightCreeper() : base(AIType.AI_Mage)
{
Name = NameList.RandomName("darknight creeper");
Body = 313;

View file

@ -8,7 +8,7 @@ namespace Server.Mobiles
private static bool m_InHere;
[Constructible]
public DemonKnight() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
public DemonKnight() : base(AIType.AI_Mage)
{
Name = NameList.RandomName("demon knight");
Title = "the Dark Father";

View file

@ -3,7 +3,7 @@ namespace Server.Mobiles
public class Devourer : BaseCreature
{
[Constructible]
public Devourer() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
public Devourer() : base(AIType.AI_Mage)
{
Body = 303;
BaseSoundID = 357;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class FleshGolem : BaseCreature
{
[Constructible]
public FleshGolem() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public FleshGolem() : base(AIType.AI_Melee)
{
Body = 304;
BaseSoundID = 684;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class FleshRenderer : BaseCreature
{
[Constructible]
public FleshRenderer() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public FleshRenderer() : base(AIType.AI_Melee)
{
Body = 315;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Gibberling : BaseCreature
{
[Constructible]
public Gibberling() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public Gibberling() : base(AIType.AI_Melee)
{
Body = 307;
BaseSoundID = 422;

View file

@ -3,7 +3,7 @@ namespace Server.Mobiles
public class GoreFiend : BaseCreature
{
[Constructible]
public GoreFiend() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public GoreFiend() : base(AIType.AI_Melee)
{
Body = 305;
BaseSoundID = 224;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Impaler : BaseCreature
{
[Constructible]
public Impaler() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public Impaler() : base(AIType.AI_Melee)
{
Name = NameList.RandomName("impaler");
Body = 306;

View file

@ -3,7 +3,7 @@ namespace Server.Mobiles
public class MoundOfMaggots : BaseCreature
{
[Constructible]
public MoundOfMaggots() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public MoundOfMaggots() : base(AIType.AI_Melee)
{
Body = 319;
BaseSoundID = 898;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class PatchworkSkeleton : BaseCreature
{
[Constructible]
public PatchworkSkeleton() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public PatchworkSkeleton() : base(AIType.AI_Melee)
{
Body = 309;
BaseSoundID = 0x48D;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Ravager : BaseCreature
{
[Constructible]
public Ravager() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public Ravager() : base(AIType.AI_Melee)
{
Body = 314;
BaseSoundID = 357;

View file

@ -10,7 +10,7 @@ namespace Server.Mobiles
private TimerExecutionToken _soundTimerToken;
[Constructible]
public ShadowKnight() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
public ShadowKnight() : base(AIType.AI_Mage)
{
Name = NameList.RandomName("shadow knight");
Title = "the Shadow Knight";

View file

@ -3,7 +3,7 @@ namespace Server.Mobiles
public class SkitteringHopper : BaseCreature
{
[Constructible]
public SkitteringHopper() : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4)
public SkitteringHopper() : base(AIType.AI_Melee, FightMode.Aggressor)
{
Body = 302;
BaseSoundID = 959;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Treefellow : BaseCreature
{
[Constructible]
public Treefellow() : base(AIType.AI_Melee, FightMode.Evil, 10, 1, 0.2, 0.4)
public Treefellow() : base(AIType.AI_Melee, FightMode.Evil)
{
Body = 301;

View file

@ -3,7 +3,7 @@ namespace Server.Mobiles
public class VampireBat : BaseCreature
{
[Constructible]
public VampireBat() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public VampireBat() : base(AIType.AI_Melee)
{
Body = 317;
BaseSoundID = 0x270;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class WailingBanshee : BaseCreature
{
[Constructible]
public WailingBanshee() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
public WailingBanshee() : base(AIType.AI_Melee)
{
Body = 310;
BaseSoundID = 0x482;

View file

@ -5,7 +5,7 @@ namespace Server.Mobiles
public class WandererOfTheVoid : BaseCreature
{
[Constructible]
public WandererOfTheVoid() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
public WandererOfTheVoid() : base(AIType.AI_Mage)
{
Body = 316;
BaseSoundID = 377;