66 lines
No EOL
1.3 KiB
C#
66 lines
No EOL
1.3 KiB
C#
using System;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "a giant toad corpse" )]
|
|
[TypeAlias( "Server.Mobiles.Gianttoad" )]
|
|
public class GiantToad : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public GiantToad() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = "a giant toad";
|
|
Body = 80;
|
|
BaseSoundID = 0x26B;
|
|
|
|
SetStr( 76, 100 );
|
|
SetDex( 6, 25 );
|
|
SetInt( 11, 20 );
|
|
|
|
SetHits( 46, 60 );
|
|
SetMana( 0 );
|
|
|
|
SetDamage( 5, 17 );
|
|
|
|
SetSkill( SkillName.MagicResist, 25.1, 40.0 );
|
|
SetSkill( SkillName.Tactics, 40.1, 60.0 );
|
|
SetSkill( SkillName.HandToHand, 40.1, 60.0 );
|
|
|
|
Fame = 750;
|
|
Karma = -750;
|
|
|
|
VirtualArmor = 24;
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Poor );
|
|
}
|
|
|
|
public override int Hides{ get{ return 12; } }
|
|
|
|
public GiantToad(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
|
|
writer.Write((int) 1);
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
|
|
int version = reader.ReadInt();
|
|
if ( version < 1 )
|
|
{
|
|
AI = AIType.AI_Melee;
|
|
FightMode = FightMode.Closest;
|
|
}
|
|
}
|
|
}
|
|
} |