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

@ -27,7 +27,7 @@ namespace Server.Items
public class WasabiClumps : Food
{
[Constructible]
public WasabiClumps() : base(0x24EB, 1)
public WasabiClumps() : base(0x24EB)
{
Stackable = false;
Weight = 1.0;
@ -80,7 +80,7 @@ namespace Server.Items
public class BentoBox : Food
{
[Constructible]
public BentoBox() : base(0x2836, 1)
public BentoBox() : base(0x2836)
{
Stackable = false;
Weight = 5.0;
@ -120,7 +120,7 @@ namespace Server.Items
public class SushiRolls : Food
{
[Constructible]
public SushiRolls() : base(0x283E, 1)
public SushiRolls() : base(0x283E)
{
Stackable = false;
Weight = 3.0;
@ -149,7 +149,7 @@ namespace Server.Items
public class SushiPlatter : Food
{
[Constructible]
public SushiPlatter() : base(0x2840, 1)
public SushiPlatter() : base(0x2840)
{
Stackable = Core.ML;
Weight = 3.0;
@ -202,7 +202,7 @@ namespace Server.Items
public class GreenTea : Food
{
[Constructible]
public GreenTea() : base(0x284C, 1)
public GreenTea() : base(0x284C)
{
Stackable = false;
Weight = 4.0;
@ -231,7 +231,7 @@ namespace Server.Items
public class MisoSoup : Food
{
[Constructible]
public MisoSoup() : base(0x284D, 1)
public MisoSoup() : base(0x284D)
{
Stackable = false;
Weight = 4.0;
@ -260,7 +260,7 @@ namespace Server.Items
public class WhiteMisoSoup : Food
{
[Constructible]
public WhiteMisoSoup() : base(0x284E, 1)
public WhiteMisoSoup() : base(0x284E)
{
Stackable = false;
Weight = 4.0;
@ -289,7 +289,7 @@ namespace Server.Items
public class RedMisoSoup : Food
{
[Constructible]
public RedMisoSoup() : base(0x284F, 1)
public RedMisoSoup() : base(0x284F)
{
Stackable = false;
Weight = 4.0;
@ -318,7 +318,7 @@ namespace Server.Items
public class AwaseMisoSoup : Food
{
[Constructible]
public AwaseMisoSoup() : base(0x2850, 1)
public AwaseMisoSoup() : base(0x2850)
{
Stackable = false;
Weight = 4.0;

View file

@ -51,7 +51,7 @@ namespace Server.Items
public class WoodenBowlOfCarrots : Food
{
[Constructible]
public WoodenBowlOfCarrots() : base(0x15F9, 1)
public WoodenBowlOfCarrots() : base(0x15F9)
{
Stackable = false;
Weight = 1.0;
@ -91,7 +91,7 @@ namespace Server.Items
public class WoodenBowlOfCorn : Food
{
[Constructible]
public WoodenBowlOfCorn() : base(0x15FA, 1)
public WoodenBowlOfCorn() : base(0x15FA)
{
Stackable = false;
Weight = 1.0;
@ -131,7 +131,7 @@ namespace Server.Items
public class WoodenBowlOfLettuce : Food
{
[Constructible]
public WoodenBowlOfLettuce() : base(0x15FB, 1)
public WoodenBowlOfLettuce() : base(0x15FB)
{
Stackable = false;
Weight = 1.0;
@ -171,7 +171,7 @@ namespace Server.Items
public class WoodenBowlOfPeas : Food
{
[Constructible]
public WoodenBowlOfPeas() : base(0x15FC, 1)
public WoodenBowlOfPeas() : base(0x15FC)
{
Stackable = false;
Weight = 1.0;
@ -211,7 +211,7 @@ namespace Server.Items
public class PewterBowlOfCarrots : Food
{
[Constructible]
public PewterBowlOfCarrots() : base(0x15FE, 1)
public PewterBowlOfCarrots() : base(0x15FE)
{
Stackable = false;
Weight = 1.0;
@ -251,7 +251,7 @@ namespace Server.Items
public class PewterBowlOfCorn : Food
{
[Constructible]
public PewterBowlOfCorn() : base(0x15FF, 1)
public PewterBowlOfCorn() : base(0x15FF)
{
Stackable = false;
Weight = 1.0;
@ -291,7 +291,7 @@ namespace Server.Items
public class PewterBowlOfLettuce : Food
{
[Constructible]
public PewterBowlOfLettuce() : base(0x1600, 1)
public PewterBowlOfLettuce() : base(0x1600)
{
Stackable = false;
Weight = 1.0;
@ -331,7 +331,7 @@ namespace Server.Items
public class PewterBowlOfPeas : Food
{
[Constructible]
public PewterBowlOfPeas() : base(0x1601, 1)
public PewterBowlOfPeas() : base(0x1601)
{
Stackable = false;
Weight = 1.0;
@ -371,7 +371,7 @@ namespace Server.Items
public class PewterBowlOfPotatos : Food
{
[Constructible]
public PewterBowlOfPotatos() : base(0x1602, 1)
public PewterBowlOfPotatos() : base(0x1602)
{
Stackable = false;
Weight = 1.0;
@ -461,7 +461,7 @@ namespace Server.Items
public class WoodenBowlOfStew : Food
{
[Constructible]
public WoodenBowlOfStew() : base(0x1604, 1)
public WoodenBowlOfStew() : base(0x1604)
{
Stackable = false;
Weight = 2.0;
@ -501,7 +501,7 @@ namespace Server.Items
public class WoodenBowlOfTomatoSoup : Food
{
[Constructible]
public WoodenBowlOfTomatoSoup() : base(0x1606, 1)
public WoodenBowlOfTomatoSoup() : base(0x1606)
{
Stackable = false;
Weight = 2.0;

View file

@ -534,7 +534,7 @@ namespace Server.Items
public class Cake : Food
{
[Constructible]
public Cake() : base(0x9E9, 1)
public Cake() : base(0x9E9)
{
Stackable = false;
Weight = 1.0;
@ -591,7 +591,7 @@ namespace Server.Items
public class Cookies : Food
{
[Constructible]
public Cookies() : base(0x160b, 1)
public Cookies() : base(0x160b)
{
Stackable = Core.ML;
Weight = 1.0;
@ -620,7 +620,7 @@ namespace Server.Items
public class Muffins : Food
{
[Constructible]
public Muffins() : base(0x9eb, 1)
public Muffins() : base(0x9eb)
{
Stackable = false;
Weight = 1.0;
@ -650,7 +650,7 @@ namespace Server.Items
public class CheesePizza : Food
{
[Constructible]
public CheesePizza() : base(0x1040, 1)
public CheesePizza() : base(0x1040)
{
Stackable = false;
Weight = 1.0;
@ -681,7 +681,7 @@ namespace Server.Items
public class SausagePizza : Food
{
[Constructible]
public SausagePizza() : base(0x1040, 1)
public SausagePizza() : base(0x1040)
{
Stackable = false;
Weight = 1.0;
@ -712,7 +712,7 @@ namespace Server.Items
public class FruitPie : Food
{
[Constructible]
public FruitPie() : base(0x1041, 1)
public FruitPie() : base(0x1041)
{
Stackable = false;
Weight = 1.0;
@ -743,7 +743,7 @@ namespace Server.Items
public class MeatPie : Food
{
[Constructible]
public MeatPie() : base(0x1041, 1)
public MeatPie() : base(0x1041)
{
Stackable = false;
Weight = 1.0;
@ -774,7 +774,7 @@ namespace Server.Items
public class PumpkinPie : Food
{
[Constructible]
public PumpkinPie() : base(0x1041, 1)
public PumpkinPie() : base(0x1041)
{
Stackable = false;
Weight = 1.0;
@ -805,7 +805,7 @@ namespace Server.Items
public class ApplePie : Food
{
[Constructible]
public ApplePie() : base(0x1041, 1)
public ApplePie() : base(0x1041)
{
Stackable = false;
Weight = 1.0;
@ -836,7 +836,7 @@ namespace Server.Items
public class PeachCobbler : Food
{
[Constructible]
public PeachCobbler() : base(0x1041, 1)
public PeachCobbler() : base(0x1041)
{
Stackable = false;
Weight = 1.0;
@ -867,7 +867,7 @@ namespace Server.Items
public class Quiche : Food
{
[Constructible]
public Quiche() : base(0x1041, 1)
public Quiche() : base(0x1041)
{
Stackable = Core.ML;
Weight = 1.0;

View file

@ -3,7 +3,7 @@ namespace Server.Items
public class FruitBasket : Food
{
[Constructible]
public FruitBasket() : base(0x993, 1)
public FruitBasket() : base(0x993)
{
Weight = 2.0;
FillFactor = 5;

View file

@ -13,7 +13,7 @@ namespace Server.Items
{
}
public CandyCane(int itemID) : base(itemID, 1)
public CandyCane(int itemID) : base(itemID)
{
Stackable = false;
LootType = LootType.Blessed;
@ -126,7 +126,7 @@ namespace Server.Items
[Constructible]
public GingerBreadCookie()
: base(Utility.RandomBool() ? 0x2be1 : 0x2be2, 1)
: base(Utility.RandomBool() ? 0x2be1 : 0x2be2)
{
Stackable = false;
LootType = LootType.Blessed;

View file

@ -65,7 +65,7 @@ namespace Server.Items
public class Spam : Food
{
[Constructible]
public Spam() : base(0x1044, 1)
public Spam() : base(0x1044)
{
Stackable = false;
LootType = LootType.Blessed;

View file

@ -9,7 +9,7 @@ namespace Server.Mobiles
{
// public override bool IsInvulnerable => true; // TODO: Wailing banshees are NOT invulnerable, are any of the others?
public BaseTalismanSummon() : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.2, 0.4)
public BaseTalismanSummon() : base(AIType.AI_Melee, FightMode.None)
{
// TODO: Stats/skills
}

View file

@ -103,7 +103,7 @@ namespace Server.Items
{
int damage = Utility.RandomMinMax(15, 35);
AOS.Damage(From, From, damage, false, 0, 0, 0, 0, 0, 0, 100, false, false, false);
AOS.Damage(From, From, damage, false, 0, 0, 0, 0, 0, 0, 100);
}
}
}