73 lines
1.7 KiB
C#
73 lines
1.7 KiB
C#
using System;
|
|
using Server;
|
|
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "a daemon corpse" )]
|
|
public class Daemon : BaseCreature
|
|
{
|
|
public override double DispelDifficulty{ get{ return 125.0; } }
|
|
public override double DispelFocus{ get{ return 45.0; } }
|
|
|
|
[Constructable]
|
|
public Daemon () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = NameList.RandomName( "daemon" );
|
|
HiddenTitle = "the daemon";
|
|
Body = Utility.RandomList( 9, 10 );
|
|
BaseSoundID = 357;
|
|
Clan = Clan.Demonic;
|
|
|
|
SetStr( 476, 505 );
|
|
SetDex( 76, 95 );
|
|
SetInt( 301, 325 );
|
|
|
|
SetHits( 286, 303 );
|
|
|
|
SetDamage( 7, 14 );
|
|
|
|
SetSkill( SkillName.Concentration, 70.1, 80.0 );
|
|
SetSkill( SkillName.Magery, 70.1, 80.0 );
|
|
SetSkill( SkillName.MagicResist, 85.1, 95.0 );
|
|
SetSkill( SkillName.Tactics, 70.1, 80.0 );
|
|
SetSkill( SkillName.HandToHand, 60.1, 80.0 );
|
|
|
|
Fame = 15000;
|
|
Karma = -15000;
|
|
|
|
VirtualArmor = 58;
|
|
ControlSlots = 5;
|
|
|
|
if ( Body == 10 )
|
|
PackItem( new Longsword() );
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Rich );
|
|
AddLoot( LootPack.Average, 2 );
|
|
AddLoot( LootPack.MedScrolls, 2 );
|
|
}
|
|
|
|
public override bool CanRummageCorpses{ get{ return true; } }
|
|
public override Poison PoisonImmune{ get{ return Poison.Regular; } }
|
|
public override int Meat{ get{ return 1; } }
|
|
|
|
public Daemon( 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();
|
|
}
|
|
}
|
|
}
|