60 lines
No EOL
1.2 KiB
C#
60 lines
No EOL
1.2 KiB
C#
using System;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "an alligator corpse" )]
|
|
public class Alligator : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public Alligator() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = "an alligator";
|
|
Body = 202;
|
|
BaseSoundID = 660;
|
|
|
|
SetStr( 76, 100 );
|
|
SetDex( 6, 25 );
|
|
SetInt( 11, 20 );
|
|
|
|
SetHits( 46, 60 );
|
|
SetStam( 46, 65 );
|
|
SetMana( 0 );
|
|
|
|
SetDamage( 5, 15 );
|
|
|
|
SetSkill( SkillName.MagicResist, 25.1, 40.0 );
|
|
SetSkill( SkillName.Tactics, 40.1, 60.0 );
|
|
SetSkill( SkillName.HandToHand, 40.1, 60.0 );
|
|
|
|
Fame = 600;
|
|
Karma = -600;
|
|
|
|
VirtualArmor = 30;
|
|
}
|
|
|
|
public override int Meat{ get{ return 1; } }
|
|
public override int Hides{ get{ return 12; } }
|
|
|
|
public Alligator(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();
|
|
|
|
if ( BaseSoundID == 0x5A )
|
|
BaseSoundID = 660;
|
|
}
|
|
}
|
|
} |