Adds style cop (#109)
This commit is contained in:
parent
3e715bcb60
commit
556a17aba8
1725 changed files with 33831 additions and 38046 deletions
|
|
@ -5,8 +5,7 @@ namespace Server.Mobiles
|
|||
public class CuSidhe : BaseMount
|
||||
{
|
||||
[Constructible]
|
||||
public CuSidhe(string name = null) :
|
||||
base(name, 277, 0x3E91, AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
||||
public CuSidhe(string name = null) : base(name, 277, 0x3E91, AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
double chance = Utility.RandomDouble() * 23301;
|
||||
|
||||
|
|
@ -41,8 +40,8 @@ namespace Server.Mobiles
|
|||
SetSkill(SkillName.Anatomy, 65.5, 69.4);
|
||||
SetSkill(SkillName.Healing, 72.2, 98.9);
|
||||
|
||||
Fame = 5000; //Guessing here
|
||||
Karma = 5000; //Guessing here
|
||||
Fame = 5000; // Guessing here
|
||||
Karma = 5000; // Guessing here
|
||||
|
||||
Tamable = true;
|
||||
ControlSlots = 4;
|
||||
|
|
@ -51,8 +50,8 @@ namespace Server.Mobiles
|
|||
if (Utility.RandomDouble() < 0.2)
|
||||
PackItem(new TreasureMap(5, Map.Trammel));
|
||||
|
||||
//if ( Utility.RandomDouble() < 0.1 )
|
||||
//PackItem( new ParrotItem() );
|
||||
// if (Utility.RandomDouble() < 0.1)
|
||||
// PackItem( new ParrotItem() );
|
||||
|
||||
PackGold(500, 800);
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
public class Ferret : BaseCreature
|
||||
{
|
||||
private static string[] m_Vocabulary =
|
||||
private static readonly string[] m_Vocabulary =
|
||||
{
|
||||
"dook",
|
||||
"dook dook",
|
||||
|
|
@ -77,11 +77,11 @@ namespace Server.Mobiles
|
|||
Say(m_Vocabulary[Utility.Random(m_Vocabulary.Length)]);
|
||||
|
||||
if (to != null && Utility.RandomBool())
|
||||
Timer.DelayCall(TimeSpan.FromSeconds(Utility.RandomMinMax(5, 8)), delegate { to.Talk(); });
|
||||
Timer.DelayCall(TimeSpan.FromSeconds(Utility.RandomMinMax(5, 8)), to.Talk);
|
||||
|
||||
m_CanTalk = false;
|
||||
|
||||
Timer.DelayCall(TimeSpan.FromSeconds(Utility.RandomMinMax(20, 30)), delegate { m_CanTalk = true; });
|
||||
Timer.DelayCall(TimeSpan.FromSeconds(Utility.RandomMinMax(20, 30)), () => { m_CanTalk = true; });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -101,4 +101,4 @@ namespace Server.Mobiles
|
|||
m_CanTalk = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ namespace Server.Mobiles
|
|||
SetSkill(SkillName.MagicResist, 32.8, 54.6);
|
||||
SetSkill(SkillName.Anatomy, 0, 0);
|
||||
|
||||
Fame = 10000; //Guessing here
|
||||
Karma = 10000; //Guessing here
|
||||
Fame = 10000; // Guessing here
|
||||
Karma = 10000; // Guessing here
|
||||
|
||||
VirtualArmor = 24;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
public class LadyJennifyr : SkeletalKnight
|
||||
{
|
||||
private static Dictionary<Mobile, ExpireTimer> m_Table = new Dictionary<Mobile, ExpireTimer>();
|
||||
private static readonly Dictionary<Mobile, ExpireTimer> m_Table = new Dictionary<Mobile, ExpireTimer>();
|
||||
|
||||
[Constructible]
|
||||
public LadyJennifyr()
|
||||
|
|
@ -54,10 +54,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.15 )
|
||||
if (Utility.RandomDouble() < 0.15)
|
||||
c.DropItem( new DisintegratingThesisNotes() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -107,8 +107,8 @@ namespace Server.Mobiles
|
|||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private ResistanceMod m_Mod;
|
||||
private readonly Mobile m_Mobile;
|
||||
private readonly ResistanceMod m_Mod;
|
||||
|
||||
public ExpireTimer(Mobile m, ResistanceMod mod)
|
||||
: base(TimeSpan.FromSeconds(10))
|
||||
|
|
|
|||
|
|
@ -51,10 +51,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.15 )
|
||||
if (Utility.RandomDouble() < 0.15)
|
||||
c.DropItem( new DisintegratingThesisNotes() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -82,4 +82,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,10 +62,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
c.DropItem( new ParrotItem() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.15 )
|
||||
if (Utility.RandomDouble() < 0.15)
|
||||
c.DropItem( new DisintegratingThesisNotes() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -92,4 +92,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,10 +61,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.15 )
|
||||
if (Utility.RandomDouble() < 0.15)
|
||||
c.DropItem( new DisintegratingThesisNotes() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -90,4 +90,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,10 +51,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.15 )
|
||||
if (Utility.RandomDouble() < 0.15)
|
||||
c.DropItem( new DisintegratingThesisNotes() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
c.DropItem( new AssassinChest() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -88,7 +88,7 @@ namespace Server.Mobiles
|
|||
|
||||
foreach (Mobile m in GetMobilesInRange(2))
|
||||
{
|
||||
if (m == this || !CanBeHarmful(m, false) || Core.AOS && !InLOS(m))
|
||||
if (m == this || !CanBeHarmful(m, false) || (Core.AOS && !InLOS(m)))
|
||||
continue;
|
||||
|
||||
if (m is BaseCreature bc)
|
||||
|
|
@ -130,4 +130,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ namespace Server.Mobiles
|
|||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
if (Utility.RandomDouble() < 0.025)
|
||||
{
|
||||
switch ( Utility.Random( 5 ) )
|
||||
{
|
||||
|
|
@ -99,4 +99,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -40,4 +40,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,10 +65,10 @@ namespace Server.Mobiles
|
|||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
if ( Utility.RandomDouble() < 0.2 )
|
||||
if (Utility.RandomDouble() < 0.2)
|
||||
c.DropItem( new ParrotItem() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
c.DropItem( new ThorvaldsMedallion() );
|
||||
*/
|
||||
}
|
||||
|
|
@ -87,4 +87,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -43,4 +43,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ namespace Server.Mobiles
|
|||
c.DropItem(new SalivasFeather());
|
||||
|
||||
// TODO: uncomment once added
|
||||
//if ( Utility.RandomDouble() < 0.1 )
|
||||
// c.DropItem( new ParrotItem() );
|
||||
// if (Utility.RandomDouble() < 0.1)
|
||||
// c.DropItem( new ParrotItem() );
|
||||
}
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
|
|
@ -73,4 +73,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,13 +86,11 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
#region Area Peace
|
||||
|
||||
private DateTime m_NextPeace;
|
||||
|
||||
public void AreaPeace()
|
||||
{
|
||||
if (Combatant == null || Deleted || !Alive || m_NextPeace > DateTime.UtcNow || 0.1 < Utility.RandomDouble())
|
||||
if (Combatant == null || Deleted || !Alive || m_NextPeace > DateTime.UtcNow || Utility.RandomDouble() > 0.1)
|
||||
return;
|
||||
|
||||
TimeSpan duration = TimeSpan.FromSeconds(Utility.RandomMinMax(20, 80));
|
||||
|
|
@ -118,15 +116,11 @@ namespace Server.Mobiles
|
|||
m?.PeacedUntil < DateTime.UtcNow && !m.Hidden && m.AccessLevel == AccessLevel.Player &&
|
||||
CanBeHarmful(m);
|
||||
|
||||
#endregion
|
||||
|
||||
#region Undress
|
||||
|
||||
private DateTime m_NextUndress;
|
||||
|
||||
public void AreaUndress()
|
||||
{
|
||||
if (Combatant == null || Deleted || !Alive || m_NextUndress > DateTime.UtcNow || 0.005 < Utility.RandomDouble())
|
||||
if (Combatant == null || Deleted || !Alive || m_NextUndress > DateTime.UtcNow || Utility.RandomDouble() > 0.005)
|
||||
return;
|
||||
|
||||
foreach (Mobile m in GetMobilesInRange(RangePerception))
|
||||
|
|
@ -153,7 +147,5 @@ namespace Server.Mobiles
|
|||
if (item?.Movable == true)
|
||||
m.PlaceInBackpack(item);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,13 +79,11 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
#region Peace
|
||||
|
||||
private DateTime m_NextPeace;
|
||||
|
||||
public void Peace(Mobile target)
|
||||
{
|
||||
if (target == null || Deleted || !Alive || m_NextPeace > DateTime.UtcNow || 0.1 < Utility.RandomDouble())
|
||||
if (target == null || Deleted || !Alive || m_NextPeace > DateTime.UtcNow || Utility.RandomDouble() > 0.1)
|
||||
return;
|
||||
|
||||
if (target is PlayerMobile p && p.PeacedUntil < DateTime.UtcNow && !p.Hidden && CanBeHarmful(p))
|
||||
|
|
@ -101,17 +99,13 @@ namespace Server.Mobiles
|
|||
m_NextPeace = DateTime.UtcNow + TimeSpan.FromSeconds(10);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Suppress
|
||||
|
||||
private static Dictionary<Mobile, Timer> m_Suppressed = new Dictionary<Mobile, Timer>();
|
||||
private static readonly Dictionary<Mobile, Timer> m_Suppressed = new Dictionary<Mobile, Timer>();
|
||||
private DateTime m_NextSuppress;
|
||||
|
||||
public void Suppress(Mobile target)
|
||||
{
|
||||
if (target == null || m_Suppressed.ContainsKey(target) || Deleted || !Alive ||
|
||||
m_NextSuppress > DateTime.UtcNow || 0.1 < Utility.RandomDouble())
|
||||
m_NextSuppress > DateTime.UtcNow || Utility.RandomDouble() > 0.1)
|
||||
return;
|
||||
|
||||
TimeSpan delay = TimeSpan.FromSeconds(Utility.RandomMinMax(20, 80));
|
||||
|
|
@ -155,7 +149,7 @@ namespace Server.Mobiles
|
|||
private class AnimateTimer : Timer
|
||||
{
|
||||
private int m_Count;
|
||||
private Mobile m_Owner;
|
||||
private readonly Mobile m_Owner;
|
||||
|
||||
public AnimateTimer(Mobile owner, int count) : base(TimeSpan.Zero, TimeSpan.FromSeconds(1.25))
|
||||
{
|
||||
|
|
@ -172,15 +166,11 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Undress
|
||||
|
||||
private DateTime m_NextUndress;
|
||||
|
||||
public void Undress(Mobile target)
|
||||
{
|
||||
if (target == null || Deleted || !Alive || m_NextUndress > DateTime.UtcNow || 0.005 < Utility.RandomDouble())
|
||||
if (target == null || Deleted || !Alive || m_NextUndress > DateTime.UtcNow || Utility.RandomDouble() > 0.005)
|
||||
return;
|
||||
|
||||
if (target.Player && target.Female && !target.Hidden && CanBeHarmful(target))
|
||||
|
|
@ -206,15 +196,11 @@ namespace Server.Mobiles
|
|||
m.PlaceInBackpack(item);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Provoke
|
||||
|
||||
private DateTime m_NextProvoke;
|
||||
|
||||
public void Provoke(Mobile target)
|
||||
{
|
||||
if (target == null || Deleted || !Alive || m_NextProvoke > DateTime.UtcNow || 0.05 < Utility.RandomDouble())
|
||||
if (target == null || Deleted || !Alive || m_NextProvoke > DateTime.UtcNow || Utility.RandomDouble() > 0.05)
|
||||
return;
|
||||
|
||||
foreach (Mobile m in GetMobilesInRange(RangePerception))
|
||||
|
|
@ -235,7 +221,5 @@ namespace Server.Mobiles
|
|||
|
||||
m_NextProvoke = DateTime.UtcNow + TimeSpan.FromSeconds(10);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ namespace Server.Mobiles
|
|||
SetSkill(SkillName.Tactics, 65.1, 90.0); // Unknown
|
||||
SetSkill(SkillName.Wrestling, 65.1, 85.0); // Unknown
|
||||
|
||||
Fame = 12500; //Unknown
|
||||
Karma = 12500; //Unknown
|
||||
Fame = 12500; // Unknown
|
||||
Karma = 12500; // Unknown
|
||||
|
||||
VirtualArmor = 24;
|
||||
PackItem(new Log(Utility.RandomMinMax(23, 34)));
|
||||
|
|
@ -58,7 +58,7 @@ namespace Server.Mobiles
|
|||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Average); //Unknown
|
||||
AddLoot(LootPack.Average); // Unknown
|
||||
}
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
|
|
|
|||
|
|
@ -25,10 +25,10 @@ namespace Server.Mobiles
|
|||
SetResistance(ResistanceType.Poison, 30, 40);
|
||||
SetResistance(ResistanceType.Energy, 30, 40);
|
||||
|
||||
//SetSkill( SkillName.Meditation, Unknown );
|
||||
//SetSkill( SkillName.EvalInt, Unknown );
|
||||
//SetSkill( SkillName.Magery, Unknown );
|
||||
//SetSkill( SkillName.Poisoning, Unknown );
|
||||
// SetSkill( SkillName.Meditation, Unknown );
|
||||
// SetSkill( SkillName.EvalInt, Unknown );
|
||||
// SetSkill( SkillName.Magery, Unknown );
|
||||
// SetSkill( SkillName.Poisoning, Unknown );
|
||||
SetSkill(SkillName.Anatomy, 0);
|
||||
SetSkill(SkillName.MagicResist, 60.6, 67.5);
|
||||
SetSkill(SkillName.Tactics, 86.9, 103.6);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ namespace Server.Mobiles
|
|||
SetSkill(SkillName.Tactics, 100.7, 102.8);
|
||||
SetSkill(SkillName.MagicResist, 104.3, 116.3);
|
||||
|
||||
|
||||
Fame = 20000;
|
||||
Karma = -20000;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
if (Utility.RandomDouble() < 0.025)
|
||||
{
|
||||
switch ( Utility.Random( 16 ) )
|
||||
{
|
||||
|
|
@ -107,4 +107,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ namespace Server.Mobiles
|
|||
MinTameSkill = 23.1;
|
||||
}
|
||||
|
||||
//TODO: Damage weapon via acid
|
||||
// TODO: Damage weapon via acid
|
||||
|
||||
public CorrosiveSlime(Serial serial) : base(serial)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ namespace Server.Mobiles
|
|||
AddLoot(LootPack.FilthyRich, 2);
|
||||
}
|
||||
|
||||
|
||||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ namespace Server.Mobiles
|
|||
|
||||
c.DropItem( new SpleenOfThePutrefier() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.6 )
|
||||
if (Utility.RandomDouble() < 0.6)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -88,4 +88,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.4 )
|
||||
if (Utility.RandomDouble() < 0.4)
|
||||
c.DropItem( new ScatteredCrystals() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -79,4 +79,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,10 +53,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.75 )
|
||||
if (Utility.RandomDouble() < 0.75)
|
||||
c.DropItem( new CrystallineFragments() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.07 )
|
||||
if (Utility.RandomDouble() < 0.07)
|
||||
c.DropItem( new PiecesOfCrystal() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -68,7 +68,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
AddLoot(LootPack.FilthyRich, 4);
|
||||
// TODO: uncomment once added
|
||||
//AddLoot( LootPack.Parrot );
|
||||
// AddLoot( LootPack.Parrot );
|
||||
AddLoot(LootPack.Gems);
|
||||
}
|
||||
|
||||
|
|
@ -95,35 +95,35 @@ namespace Server.Mobiles
|
|||
switch (Utility.Random(3))
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
Say(1042156); // I can grant life, and I can sap it as easily.
|
||||
PlaySound(0x1E6);
|
||||
{
|
||||
Say(1042156); // I can grant life, and I can sap it as easily.
|
||||
PlaySound(0x1E6);
|
||||
|
||||
toDrain = Utility.RandomMinMax(3, 6);
|
||||
Hits += toDrain;
|
||||
m.Hits -= toDrain;
|
||||
break;
|
||||
}
|
||||
toDrain = Utility.RandomMinMax(3, 6);
|
||||
Hits += toDrain;
|
||||
m.Hits -= toDrain;
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
Say(1042157); // You'll go nowhere, unless I deem it should be so.
|
||||
PlaySound(0x1DF);
|
||||
{
|
||||
Say(1042157); // You'll go nowhere, unless I deem it should be so.
|
||||
PlaySound(0x1DF);
|
||||
|
||||
toDrain = Utility.RandomMinMax(10, 25);
|
||||
Stam += toDrain;
|
||||
m.Stam -= toDrain;
|
||||
break;
|
||||
}
|
||||
toDrain = Utility.RandomMinMax(10, 25);
|
||||
Stam += toDrain;
|
||||
m.Stam -= toDrain;
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
Say(1042155); // Your power is mine to use as I will.
|
||||
PlaySound(0x1F8);
|
||||
{
|
||||
Say(1042155); // Your power is mine to use as I will.
|
||||
PlaySound(0x1F8);
|
||||
|
||||
toDrain = Utility.RandomMinMax(15, 25);
|
||||
Mana += toDrain;
|
||||
m.Mana -= toDrain;
|
||||
break;
|
||||
}
|
||||
toDrain = Utility.RandomMinMax(15, 25);
|
||||
Mana += toDrain;
|
||||
m.Mana -= toDrain;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -151,4 +151,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,13 +32,13 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.05 )
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
c.DropItem( new CrushedCrystals() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new IcyHeart() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new LuckyDagger() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -65,4 +65,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
AddLoot(LootPack.FilthyRich, 2);
|
||||
// TODO: uncomment once added
|
||||
//AddLoot( LootPack.Parrot );
|
||||
// AddLoot( LootPack.Parrot );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -60,10 +60,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.75 )
|
||||
if (Utility.RandomDouble() < 0.75)
|
||||
c.DropItem( new CrystallineFragments() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.06 )
|
||||
if (Utility.RandomDouble() < 0.06)
|
||||
c.DropItem( new JaggedCrystals() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -86,4 +86,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.4 )
|
||||
if (Utility.RandomDouble() < 0.4)
|
||||
c.DropItem( new ProtectorsEssence() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -104,4 +104,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,10 +47,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.6 )
|
||||
if (Utility.RandomDouble() < 0.6)
|
||||
c.DropItem( new BrokenCrystals() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -67,7 +67,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
AddLoot(LootPack.UltraRich, 2);
|
||||
// TODO: uncomment once added
|
||||
//AddLoot( LootPack.Parrot );
|
||||
// AddLoot( LootPack.Parrot );
|
||||
}
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
|
|
@ -84,4 +84,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
public class Ilhenir : BaseChampion
|
||||
{
|
||||
private static HashSet<Mobile> m_Table = new HashSet<Mobile>();
|
||||
private static readonly HashSet<Mobile> m_Table = new HashSet<Mobile>();
|
||||
|
||||
[Constructible]
|
||||
public Ilhenir()
|
||||
|
|
@ -92,7 +92,7 @@ namespace Server.Mobiles
|
|||
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
|
||||
//public override bool GivesMLMinorArtifact => true; // TODO: Needs verification
|
||||
// public override bool GivesMLMinorArtifact => true; // TODO: Needs verification
|
||||
public override int TreasureMapLevel => 5;
|
||||
|
||||
public virtual void PackResources(int amount)
|
||||
|
|
@ -149,7 +149,7 @@ namespace Server.Mobiles
|
|||
c.DropItem(new GrizzledBones());
|
||||
|
||||
// TODO: Parrots
|
||||
/*if ( Utility.RandomDouble() < 0.6 )
|
||||
/*if (Utility.RandomDouble() < 0.6)
|
||||
c.DropItem( new ParrotItem() ); */
|
||||
|
||||
if (Utility.RandomDouble() < 0.05)
|
||||
|
|
@ -159,7 +159,7 @@ namespace Server.Mobiles
|
|||
c.DropItem(new CrimsonCincture());
|
||||
|
||||
// TODO: Armor sets
|
||||
/*if ( Utility.RandomDouble() < 0.05 )
|
||||
/*if (Utility.RandomDouble() < 0.05)
|
||||
{
|
||||
switch ( Utility.Random(5) )
|
||||
{
|
||||
|
|
@ -303,7 +303,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public bool Corrosive{ get; set; }
|
||||
public bool Corrosive { get; set; }
|
||||
|
||||
public override void OnAfterDelete()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@ namespace Server.Mobiles
|
|||
SetResistance(ResistanceType.Poison, 40, 60);
|
||||
SetResistance(ResistanceType.Energy, 50, 55);
|
||||
|
||||
//SetSkill( SkillName.Meditation, Unknown );
|
||||
//SetSkill( SkillName.EvalInt, Unknown );
|
||||
//SetSkill( SkillName.Magery, Unknown );
|
||||
//SetSkill( SkillName.Poisoning, Unknown );
|
||||
// SetSkill( SkillName.Meditation, Unknown );
|
||||
// SetSkill( SkillName.EvalInt, Unknown );
|
||||
// SetSkill( SkillName.Magery, Unknown );
|
||||
// SetSkill( SkillName.Poisoning, Unknown );
|
||||
SetSkill(SkillName.Anatomy, 0);
|
||||
SetSkill(SkillName.MagicResist, 107.0, 111.3);
|
||||
SetSkill(SkillName.Tactics, 107.0, 117.0);
|
||||
|
|
@ -169,7 +169,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
if (0.2 >= Utility.RandomDouble())
|
||||
if (Utility.RandomDouble() <= 0.2)
|
||||
Earthquake();
|
||||
}
|
||||
|
||||
|
|
@ -179,8 +179,8 @@ namespace Server.Mobiles
|
|||
|
||||
foreach (Mobile m in eable)
|
||||
{
|
||||
if (m == this || !CanBeHarmful(m) || m.Deleted || !m.Player &&
|
||||
!(m is BaseCreature creature && (creature.Controlled || creature.Summoned || creature.Team != Team)))
|
||||
if (m == this || !CanBeHarmful(m) || m.Deleted || (!m.Player &&
|
||||
!(m is BaseCreature creature && (creature.Controlled || creature.Summoned || creature.Team != Team))))
|
||||
continue;
|
||||
|
||||
if (m is PlayerMobile pm && pm.Mounted)
|
||||
|
|
@ -212,8 +212,6 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
#region SpawnHelpers
|
||||
|
||||
public void SpawnTormented()
|
||||
{
|
||||
BaseCreature spawna = new TormentedMinotaur();
|
||||
|
|
@ -228,7 +226,5 @@ namespace Server.Mobiles
|
|||
BaseCreature spawnd = new TormentedMinotaur();
|
||||
spawnd.MoveToWorld(Location, Map);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ namespace Server.Mobiles
|
|||
|
||||
public override void AlterDamageScalarFrom(Mobile caster, ref double scalar)
|
||||
{
|
||||
if (0.1 >= Utility.RandomDouble())
|
||||
if (Utility.RandomDouble() <= 0.1)
|
||||
SpawnPixies(caster);
|
||||
}
|
||||
|
||||
|
|
@ -118,7 +118,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnGotMeleeAttack(attacker);
|
||||
|
||||
if (0.1 >= Utility.RandomDouble())
|
||||
if (Utility.RandomDouble() <= 0.1)
|
||||
SpawnPixies(attacker);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.3 )
|
||||
if (Utility.RandomDouble() < 0.3)
|
||||
c.DropItem( new GnawsFang() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -77,4 +77,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,10 +42,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.25 )
|
||||
if (Utility.RandomDouble() < 0.25)
|
||||
c.DropItem( new IrksBrain() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
if (Utility.RandomDouble() < 0.025)
|
||||
c.DropItem( new PaladinGloves() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -82,4 +82,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,13 +52,13 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
if (Utility.RandomDouble() < 0.025)
|
||||
c.DropItem( new GreymistChest() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.45 )
|
||||
if (Utility.RandomDouble() < 0.45)
|
||||
c.DropItem( new LissithsSilk() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -86,4 +86,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,10 +52,10 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.2 )
|
||||
if (Utility.RandomDouble() < 0.2)
|
||||
c.DropItem( new SabrixsEye() );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.25 )
|
||||
if (Utility.RandomDouble() < 0.25)
|
||||
{
|
||||
switch ( Utility.Random( 2 ) )
|
||||
{
|
||||
|
|
@ -64,7 +64,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -92,4 +92,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace Server.Mobiles
|
|||
|
||||
/*
|
||||
// TODO: uncomment once added
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
PackItem( new ParrotItem() );
|
||||
*/
|
||||
}
|
||||
|
|
@ -77,4 +77,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
public class Swoop : Eagle
|
||||
{
|
||||
private static Dictionary<Mobile, ExpireTimer> m_Table = new Dictionary<Mobile, ExpireTimer>();
|
||||
private static readonly Dictionary<Mobile, ExpireTimer> m_Table = new Dictionary<Mobile, ExpireTimer>();
|
||||
|
||||
[Constructible]
|
||||
public Swoop()
|
||||
|
|
@ -48,13 +48,13 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
if (Utility.RandomDouble() < 0.025)
|
||||
{
|
||||
switch ( Utility.Random( 18 ) )
|
||||
{
|
||||
case 0: c.DropItem( new AssassinChest() ); break;
|
||||
case 1: c.DropItem( new AssassinArms() ); break;
|
||||
case 2: c.DropItem( new DeathChest() ); break;
|
||||
case 2: c.DropItem( new DeathChest() ); break;
|
||||
case 3: c.DropItem( new MyrmidonArms() ); break;
|
||||
case 4: c.DropItem( new MyrmidonLegs() ); break;
|
||||
case 5: c.DropItem( new MyrmidonGorget() ); break;
|
||||
|
|
@ -73,7 +73,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -100,7 +100,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
if (0.1 <= Utility.RandomDouble())
|
||||
if (Utility.RandomDouble() >= 0.1)
|
||||
return;
|
||||
|
||||
if (m_Table.TryGetValue(defender, out ExpireTimer timer))
|
||||
|
|
@ -142,8 +142,8 @@ namespace Server.Mobiles
|
|||
|
||||
private class ExpireTimer : Timer
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private ResistanceMod m_Mod;
|
||||
private readonly Mobile m_Mobile;
|
||||
private readonly ResistanceMod m_Mod;
|
||||
|
||||
public ExpireTimer(Mobile m, ResistanceMod mod, TimeSpan delay)
|
||||
: base(delay)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnDeath( c );
|
||||
|
||||
if ( Utility.RandomDouble() < 0.025 )
|
||||
if (Utility.RandomDouble() < 0.025)
|
||||
{
|
||||
switch ( Utility.Random( 2 ) )
|
||||
{
|
||||
|
|
@ -63,7 +63,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
if ( Utility.RandomDouble() < 0.1 )
|
||||
if (Utility.RandomDouble() < 0.1)
|
||||
c.DropItem( new ParrotItem() );
|
||||
}
|
||||
*/
|
||||
|
|
@ -91,4 +91,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue