65 lines
No EOL
1.4 KiB
C#
65 lines
No EOL
1.4 KiB
C#
using System;
|
|
using Server;
|
|
using Server.Items;
|
|
using Server.Spells;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "a mantis corpse" )]
|
|
public class Mantis : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public Mantis() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = "a mantis";
|
|
Body = 184;
|
|
BaseSoundID = 0x4F0;
|
|
|
|
SetStr( 166, 215 );
|
|
SetDex( 96, 145 );
|
|
SetInt( 41, 65 );
|
|
|
|
SetHits( 100, 129 );
|
|
SetMana( 0 );
|
|
|
|
SetDamage( 7, 17 );
|
|
|
|
SetSkill( SkillName.Poisoning, 60.1, 80.0 );
|
|
SetSkill( SkillName.MagicResist, 60.1, 75.0 );
|
|
SetSkill( SkillName.Tactics, 80.1, 100.0 );
|
|
SetSkill( SkillName.HandToHand, 80.1, 90.0 );
|
|
|
|
Fame = 4000;
|
|
Karma = -4000;
|
|
|
|
VirtualArmor = 30;
|
|
|
|
PackItem( new PoisonPotion() );
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Average );
|
|
AddLoot( LootPack.Meager );
|
|
}
|
|
|
|
public override Poison PoisonImmune{ get{ return Poison.Greater; } }
|
|
public override Poison HitPoison{ get{ return (0.8 >= Utility.RandomDouble() ? Poison.Lesser : Poison.Regular); } }
|
|
|
|
public Mantis( 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();
|
|
}
|
|
}
|
|
} |