- Talisman slayers fixed to account for inheritance. - Added repond slayer vulnerability to Troglodyte. - Added overload for AOS.Damage with chaos damage support. - Corrected order of ML artifact award messages. - MageAI corrected to not meditate when already meditating. - Changed MageAI necro/mage bias to something more sensible. - Changed speed of most named ML mobs. - Skeletal steeds are now bleed immune. - Damage cap of 200 (before resists) added to fire breath attacks. - Damaging aura effect added to BaseCreature. - Necromancy skill added to several undead mobs. - The succubus special drain effect message no longer shows. - Corrected Sir Patrick's drain effect to account for LOS. - Added healing skill to Troglodytes. - Added named ML mobs for the Labyrinth, Painted Caves, Palace of Paroxysmus, Sanctuary and Twisted Weald. - Added changelings. - Disabled auto unequiping of weapons when meditating for nonplayers. - Added cast animations for players in wraith form, lich form and horrific beast. - Fixed Holy Light to account for LOS. - Fixed Animate Dead to account for inheritance. - Fixed Wither friendly fire issue when cast by monsters.
120 lines
No EOL
2.8 KiB
C#
120 lines
No EOL
2.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Server;
|
|
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "a succubus corpse" )]
|
|
public class Succubus : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public Succubus () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = "a succubus";
|
|
Body = 149;
|
|
BaseSoundID = 0x4B0;
|
|
|
|
SetStr( 488, 620 );
|
|
SetDex( 121, 170 );
|
|
SetInt( 498, 657 );
|
|
|
|
SetHits( 312, 353 );
|
|
|
|
SetDamage( 18, 28 );
|
|
|
|
SetDamageType( ResistanceType.Physical, 75 );
|
|
SetDamageType( ResistanceType.Energy, 25 );
|
|
|
|
SetResistance( ResistanceType.Physical, 80, 90 );
|
|
SetResistance( ResistanceType.Fire, 70, 80 );
|
|
SetResistance( ResistanceType.Cold, 40, 50 );
|
|
SetResistance( ResistanceType.Poison, 50, 60 );
|
|
SetResistance( ResistanceType.Energy, 50, 60 );
|
|
|
|
SetSkill( SkillName.EvalInt, 90.1, 100.0 );
|
|
SetSkill( SkillName.Magery, 99.1, 100.0 );
|
|
SetSkill( SkillName.Meditation, 90.1, 100.0 );
|
|
SetSkill( SkillName.MagicResist, 100.5, 150.0 );
|
|
SetSkill( SkillName.Tactics, 80.1, 90.0 );
|
|
SetSkill( SkillName.Wrestling, 80.1, 90.0 );
|
|
|
|
Fame = 24000;
|
|
Karma = -24000;
|
|
|
|
VirtualArmor = 80;
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.FilthyRich, 2 );
|
|
AddLoot( LootPack.MedScrolls, 2 );
|
|
}
|
|
|
|
public override int Meat{ get{ return 1; } }
|
|
public override int TreasureMapLevel{ get{ return 5; } }
|
|
|
|
public void DrainLife()
|
|
{
|
|
ArrayList list = new ArrayList();
|
|
|
|
foreach ( Mobile m in this.GetMobilesInRange( 2 ) )
|
|
{
|
|
if ( m == this || !CanBeHarmful( m ) )
|
|
continue;
|
|
|
|
if ( m is BaseCreature && (((BaseCreature)m).Controlled || ((BaseCreature)m).Summoned || ((BaseCreature)m).Team != this.Team) )
|
|
list.Add( m );
|
|
else if ( m.Player )
|
|
list.Add( m );
|
|
}
|
|
|
|
foreach ( Mobile m in list )
|
|
{
|
|
DoHarmful( m );
|
|
|
|
m.FixedParticles( 0x374A, 10, 15, 5013, 0x496, 0, EffectLayer.Waist );
|
|
m.PlaySound( 0x231 );
|
|
|
|
//m.SendMessage( "You feel the life drain out of you!" );
|
|
|
|
int toDrain = Utility.RandomMinMax( 10, 40 );
|
|
|
|
Hits += toDrain;
|
|
m.Damage( toDrain, this );
|
|
}
|
|
}
|
|
|
|
public override void OnGaveMeleeAttack( Mobile defender )
|
|
{
|
|
base.OnGaveMeleeAttack( defender );
|
|
|
|
if ( 0.1 >= Utility.RandomDouble() )
|
|
DrainLife();
|
|
}
|
|
|
|
public override void OnGotMeleeAttack( Mobile attacker )
|
|
{
|
|
base.OnGotMeleeAttack( attacker );
|
|
|
|
if ( 0.1 >= Utility.RandomDouble() )
|
|
DrainLife();
|
|
}
|
|
|
|
public Succubus( Serial serial ) : base( serial )
|
|
{
|
|
}
|
|
|
|
public override void Serialize( GenericWriter writer )
|
|
{
|
|
base.Serialize( writer );
|
|
writer.Write( (int) 0 );
|
|
}
|
|
|
|
public override void Deserialize( GenericReader reader )
|
|
{
|
|
base.Deserialize( reader );
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
} |