71 lines
No EOL
1.5 KiB
C#
71 lines
No EOL
1.5 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Server.Items;
|
|
using Server.Targeting;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "an earth elemental corpse" )]
|
|
public class EarthElemental : BaseCreature
|
|
{
|
|
public override double DispelDifficulty{ get{ return 117.5; } }
|
|
public override double DispelFocus{ get{ return 45.0; } }
|
|
|
|
[Constructable]
|
|
public EarthElemental() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = "an earth elemental";
|
|
Body = 14;
|
|
BaseSoundID = 268;
|
|
|
|
SetStr( 126, 155 );
|
|
SetDex( 66, 85 );
|
|
SetInt( 71, 92 );
|
|
|
|
SetHits( 76, 93 );
|
|
|
|
SetDamage( 9, 16 );
|
|
|
|
SetSkill( SkillName.MagicResist, 50.1, 95.0 );
|
|
SetSkill( SkillName.Tactics, 60.1, 100.0 );
|
|
SetSkill( SkillName.HandToHand, 60.1, 100.0 );
|
|
|
|
Fame = 3500;
|
|
Karma = -3500;
|
|
|
|
VirtualArmor = 34;
|
|
ControlSlots = 2;
|
|
|
|
PackItem( new MandrakeRoot() );
|
|
|
|
Item ore = new IronOre( 5 );
|
|
ore.ItemID = 0x19B7;
|
|
PackItem( ore );
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Average );
|
|
AddLoot( LootPack.Meager );
|
|
AddLoot( LootPack.Gems );
|
|
}
|
|
|
|
public override bool BleedImmune{ get{ return true; } }
|
|
|
|
public EarthElemental( 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();
|
|
}
|
|
}
|
|
} |