Add DefaultName property to Mobiles & Items (#18)
This commit is contained in:
parent
b06f5bf60d
commit
8ee42c8ea2
713 changed files with 5112 additions and 4987 deletions
|
|
@ -12,13 +12,14 @@ namespace Server.Mobiles
|
|||
public bool FieldActive{ get{ return m_FieldActive; } }
|
||||
public bool CanUseField{ get{ return Hits >= HitsMax * 9 / 10; } } // TODO: an OSI bug prevents to verify this
|
||||
|
||||
public override bool IsScaredOfScaryThings{ get{ return false; } }
|
||||
public override bool IsScaryToPets{ get{ return true; } }
|
||||
public override bool IsScaredOfScaryThings => false;
|
||||
public override bool IsScaryToPets => true;
|
||||
|
||||
public override string DefaultName => "an exodus minion";
|
||||
|
||||
[Constructible]
|
||||
public ExodusMinion() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "exodus minion";
|
||||
Body = 0x2F5;
|
||||
|
||||
SetStr( 851, 950 );
|
||||
|
|
@ -63,9 +64,9 @@ namespace Server.Mobiles
|
|||
AddLoot( LootPack.Rich );
|
||||
}
|
||||
|
||||
public override bool AutoDispel{ get{ return true; } }
|
||||
public override bool BardImmune{ get{ return !Core.AOS; } }
|
||||
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
|
||||
public override bool AutoDispel => true;
|
||||
public override bool BardImmune => !Core.AOS;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
|
|
@ -188,8 +189,8 @@ namespace Server.Mobiles
|
|||
|
||||
m_FieldActive = CanUseField;
|
||||
|
||||
if( this.Name == "Exodus Minion" )
|
||||
this.Name = "exodus minion";
|
||||
if ( this.Name == "Exodus Minion" )
|
||||
this.Name = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,13 +12,14 @@ namespace Server.Mobiles
|
|||
public bool FieldActive{ get{ return m_FieldActive; } }
|
||||
public bool CanUseField{ get{ return Hits >= HitsMax * 9 / 10; } } // TODO: an OSI bug prevents to verify this
|
||||
|
||||
public override bool IsScaredOfScaryThings{ get{ return false; } }
|
||||
public override bool IsScaryToPets{ get{ return true; } }
|
||||
public override bool IsScaredOfScaryThings => false;
|
||||
public override bool IsScaryToPets => true;
|
||||
|
||||
public override string DefaultName => "an exodus overseer";
|
||||
|
||||
[Constructible]
|
||||
public ExodusOverseer() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "exodus overseer";
|
||||
Body = 0x2F4;
|
||||
|
||||
SetStr( 561, 650 );
|
||||
|
|
@ -59,9 +60,9 @@ namespace Server.Mobiles
|
|||
AddLoot( LootPack.Rich );
|
||||
}
|
||||
|
||||
public override bool AutoDispel{ get{ return true; } }
|
||||
public override bool BardImmune{ get{ return !Core.AOS; } }
|
||||
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
|
||||
public override bool AutoDispel => true;
|
||||
public override bool BardImmune => !Core.AOS;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
|
|
@ -157,7 +158,7 @@ namespace Server.Mobiles
|
|||
this.FixedParticles( 0, 10, 0, 0x2530, EffectLayer.Waist );
|
||||
|
||||
return move;
|
||||
}
|
||||
}
|
||||
|
||||
public void SendEBolt( Mobile to )
|
||||
{
|
||||
|
|
@ -185,7 +186,7 @@ namespace Server.Mobiles
|
|||
m_FieldActive = CanUseField;
|
||||
|
||||
if( this.Name == "Exodus Overseer" )
|
||||
this.Name = "exodus overseer";
|
||||
this.Name = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,11 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a chaos dragoon corpse" )]
|
||||
public class ChaosDragoon : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a chaos dragoon";
|
||||
|
||||
[Constructible]
|
||||
public ChaosDragoon() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.15, 0.4 )
|
||||
{
|
||||
Name = "a chaos dragoon";
|
||||
Body = 0x190;
|
||||
Hue = Utility.RandomSkinHue();
|
||||
|
||||
|
|
@ -139,15 +140,15 @@ namespace Server.Mobiles
|
|||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
//AddLoot( LootPack.Gems );
|
||||
//AddLoot( LootPack.Gems );
|
||||
}
|
||||
|
||||
public override bool HasBreath{ get{ return true; } }
|
||||
public override bool AutoDispel{ get{ return true; } }
|
||||
public override bool BardImmune{ get{ return !Core.AOS; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool ShowFameTitle{ get{ return false; } }
|
||||
public override bool HasBreath => true;
|
||||
public override bool AutoDispel => true;
|
||||
public override bool BardImmune => !Core.AOS;
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override bool ShowFameTitle => false;
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,11 +8,12 @@ namespace Server.Mobiles
|
|||
[CorpseName("a chaos dragoon elite corpse")]
|
||||
public class ChaosDragoonElite : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a chaos dragoon elite";
|
||||
|
||||
[Constructible]
|
||||
public ChaosDragoonElite()
|
||||
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.15, 0.4)
|
||||
{
|
||||
Name = "a chaos dragoon elite";
|
||||
Body = 0x190;
|
||||
Hue = Utility.RandomSkinHue();
|
||||
|
||||
|
|
@ -158,12 +159,12 @@ namespace Server.Mobiles
|
|||
AddLoot(LootPack.Gems);
|
||||
}
|
||||
|
||||
public override bool HasBreath { get { return true; } }
|
||||
public override bool AutoDispel { get { return true; } }
|
||||
public override bool HasBreath => true;
|
||||
public override bool AutoDispel => true;
|
||||
public override bool BardImmune { get { return !Core.AOS; } }
|
||||
public override bool CanRummageCorpses { get { return true; } }
|
||||
public override bool AlwaysMurderer { get { return true; } }
|
||||
public override bool ShowFameTitle { get { return false; } }
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override bool ShowFameTitle => false;
|
||||
|
||||
public override bool OnBeforeDeath()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,13 +6,14 @@ using Server.Misc;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a juka corpse" )] // Why is this 'juka' and warriors 'jukan' ? :-(
|
||||
[CorpseName( "a jukan corpse" )]
|
||||
public class JukaLord : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a juka lord";
|
||||
|
||||
[Constructible]
|
||||
public JukaLord() : base( AIType.AI_Archer, FightMode.Closest, 10, 3, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a juka lord";
|
||||
Body = 766;
|
||||
|
||||
SetStr( 401, 500 );
|
||||
|
|
@ -104,9 +105,9 @@ namespace Server.Mobiles
|
|||
return 0x28D;
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool BardImmune{ get{ return !Core.AOS; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override bool BardImmune => !Core.AOS;
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int Meat{ get{ return 1; } }
|
||||
|
||||
public JukaLord( Serial serial ) : base( serial )
|
||||
|
|
|
|||
|
|
@ -7,13 +7,14 @@ using Server.Spells;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a juka corpse" )] // Why is this 'juka' and warriors 'jukan' ? :-(
|
||||
[CorpseName( "a jukan corpse" )]
|
||||
public class JukaMage : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a juka mage";
|
||||
|
||||
[Constructible]
|
||||
public JukaMage() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a juka mage";
|
||||
Body = 765;
|
||||
|
||||
SetStr( 201, 300 );
|
||||
|
|
@ -96,8 +97,8 @@ namespace Server.Mobiles
|
|||
return 0x28D;
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int Meat{ get{ return 1; } }
|
||||
|
||||
private DateTime m_NextAbilityTime;
|
||||
|
|
|
|||
|
|
@ -9,10 +9,11 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a jukan corpse" )]
|
||||
public class JukaWarrior : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a juka warrior";
|
||||
|
||||
[Constructible]
|
||||
public JukaWarrior() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a juka warrior";
|
||||
Body = 764;
|
||||
|
||||
SetStr( 251, 350 );
|
||||
|
|
@ -75,8 +76,8 @@ namespace Server.Mobiles
|
|||
return 0x28D;
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override bool AlwaysMurderer => true;
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int Meat{ get{ return 1; } }
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
|
|
|
|||
|
|
@ -7,26 +7,27 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a hare corpse" )]
|
||||
public class EnragedRabbit : BaseEnraged
|
||||
{
|
||||
public override string DefaultName => "a rabbit";
|
||||
|
||||
public EnragedRabbit( Mobile summoner ) : base( summoner )
|
||||
{
|
||||
Name = "a rabbit";
|
||||
Body = 0xcd;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0xC9;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0xC9;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xCA;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0xCA;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xCB;
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0xCB;
|
||||
}
|
||||
|
||||
public EnragedRabbit( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
@ -48,26 +49,27 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a deer corpse" )]
|
||||
public class EnragedHart : BaseEnraged
|
||||
{
|
||||
public override string DefaultName => "a great hart";
|
||||
|
||||
public EnragedHart( Mobile summoner ) : base( summoner )
|
||||
{
|
||||
Name = "a great hart";
|
||||
Body = 0xea;
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x82;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x82;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x83;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x83;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x84;
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x84;
|
||||
}
|
||||
|
||||
public EnragedHart( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
@ -89,25 +91,26 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a deer corpse" )]
|
||||
public class EnragedHind : BaseEnraged
|
||||
{
|
||||
public override string DefaultName => "a hind";
|
||||
|
||||
public EnragedHind( Mobile summoner ) : base( summoner )
|
||||
{
|
||||
Name = "a hind";
|
||||
Body = 0xed;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x82;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return 0x82;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x83;
|
||||
}
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x83;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x84;
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x84;
|
||||
}
|
||||
|
||||
public EnragedHind( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
@ -129,9 +132,10 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a bear corpse" )]
|
||||
public class EnragedBlackBear : BaseEnraged
|
||||
{
|
||||
public override string DefaultName => "a black bear";
|
||||
|
||||
public EnragedBlackBear( Mobile summoner ) : base( summoner )
|
||||
{
|
||||
Name = "a black bear";
|
||||
Body = 0xd3;
|
||||
BaseSoundID = 0xa3;
|
||||
}
|
||||
|
|
@ -155,9 +159,10 @@ namespace Server.Mobiles
|
|||
[CorpseName( "an eagle corpse" )]
|
||||
public class EnragedEagle : BaseEnraged
|
||||
{
|
||||
public override string DefaultName => "an eagle";
|
||||
|
||||
public EnragedEagle( Mobile summoner ) : base( summoner )
|
||||
{
|
||||
Name = "an eagle";
|
||||
Body = 0x5;
|
||||
BaseSoundID = 0x2ee;
|
||||
}
|
||||
|
|
@ -178,7 +183,7 @@ namespace Server.Mobiles
|
|||
|
||||
public class BaseEnraged : BaseCreature
|
||||
{
|
||||
public BaseEnraged( Mobile summoner )
|
||||
public BaseEnraged( Mobile summoner )
|
||||
: base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
SetStr( 50, 200 );
|
||||
|
|
@ -186,7 +191,7 @@ namespace Server.Mobiles
|
|||
SetHits( 50, 200 );
|
||||
SetStam( 50, 200 );
|
||||
|
||||
/*
|
||||
/*
|
||||
On OSI, all stats are random 50-200, but
|
||||
str is never less than hits, and dex is never
|
||||
less than stam.
|
||||
|
|
@ -254,7 +259,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
Mobile combatant = mobile.Combatant;
|
||||
if( combatant == null || combatant.Deleted )
|
||||
{
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else if ( combatant.IsDeadBondedPet || !combatant.Alive )
|
||||
|
|
|
|||
|
|
@ -10,10 +10,11 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a meer corpse" )]
|
||||
public class MeerCaptain : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a meer captain";
|
||||
|
||||
[Constructible]
|
||||
public MeerCaptain() : base( AIType.AI_Archer, FightMode.Evil, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a meer captain";
|
||||
Body = 773;
|
||||
|
||||
SetStr( 96, 110 );
|
||||
|
|
@ -86,10 +87,10 @@ namespace Server.Mobiles
|
|||
AddLoot( LootPack.Meager );
|
||||
}
|
||||
|
||||
public override bool BardImmune{ get{ return !Core.AOS; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override bool BardImmune => !Core.AOS;
|
||||
public override bool CanRummageCorpses => true;
|
||||
|
||||
public override bool InitialInnocent{ get{ return true; } }
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
|
|
@ -165,4 +166,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,10 +10,11 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a meer's corpse" )]
|
||||
public class MeerEternal : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a meer eternal";
|
||||
|
||||
[Constructible]
|
||||
public MeerEternal() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a meer eternal";
|
||||
Body = 772;
|
||||
|
||||
SetStr( 416, 505 );
|
||||
|
|
@ -54,13 +55,13 @@ namespace Server.Mobiles
|
|||
AddLoot( LootPack.HighScrolls, 2 );
|
||||
}
|
||||
|
||||
public override bool AutoDispel{ get{ return true; } }
|
||||
public override bool BardImmune{ get{ return !Core.AOS; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
|
||||
public override bool AutoDispel => true;
|
||||
public override bool BardImmune => !Core.AOS;
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
public override int TreasureMapLevel{ get{ return Core.AOS ? 5 : 4; } }
|
||||
|
||||
public override bool InitialInnocent{ get{ return true; } }
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
|
|
@ -214,4 +215,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,10 +10,11 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a meer's corpse" )]
|
||||
public class MeerMage : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a meer mage";
|
||||
|
||||
[Constructible]
|
||||
public MeerMage() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a meer mage";
|
||||
Body = 770;
|
||||
|
||||
SetStr( 171, 200 );
|
||||
|
|
@ -54,12 +55,12 @@ namespace Server.Mobiles
|
|||
// TODO: Daemon bone ...
|
||||
}
|
||||
|
||||
public override bool AutoDispel{ get{ return true; } }
|
||||
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override bool AutoDispel => true;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel{ get{ return 3; } }
|
||||
|
||||
public override bool InitialInnocent{ get{ return true; } }
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
|
|
@ -103,7 +104,7 @@ namespace Server.Mobiles
|
|||
|
||||
if( Utility.RandomDouble() < .1 )
|
||||
{
|
||||
int[][] coord =
|
||||
int[][] coord =
|
||||
{
|
||||
new int[]{-4,-6}, new int[]{4,-6}, new int[]{0,-8}, new int[]{-5,5}, new int[]{5,5}
|
||||
};
|
||||
|
|
@ -223,4 +224,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,10 +10,11 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a meer corpse" )]
|
||||
public class MeerWarrior : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a meer warrior";
|
||||
|
||||
[Constructible]
|
||||
public MeerWarrior() : base( AIType.AI_Melee, FightMode.Evil, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a meer warrior";
|
||||
Body = 771;
|
||||
|
||||
SetStr( 86, 100 );
|
||||
|
|
@ -47,10 +48,10 @@ namespace Server.Mobiles
|
|||
AddLoot( LootPack.Meager );
|
||||
}
|
||||
|
||||
public override bool BardImmune{ get{ return !Core.AOS; } }
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override bool BardImmune => !Core.AOS;
|
||||
public override bool CanRummageCorpses => true;
|
||||
|
||||
public override bool InitialInnocent{ get{ return true; } }
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
|
|
@ -89,4 +90,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue