75 lines
No EOL
1.7 KiB
C#
75 lines
No EOL
1.7 KiB
C#
using System;
|
|
using Server.Items;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName("a lava snake corpse")]
|
|
[TypeAlias( "Server.Mobiles.Lavasnake" )]
|
|
public class LavaSnake : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public LavaSnake() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = "a lava snake";
|
|
Body = 52;
|
|
Hue = Utility.RandomList( 0x647, 0x650, 0x659, 0x662, 0x66B, 0x674 );
|
|
BaseSoundID = 0xDB;
|
|
|
|
SetStr( 43, 55 );
|
|
SetDex( 16, 25 );
|
|
SetInt( 6, 10 );
|
|
|
|
SetHits( 28, 32 );
|
|
SetMana( 0 );
|
|
|
|
SetDamage( 1, 8 );
|
|
|
|
SetDamageType( ResistanceType.Physical, 100 );
|
|
|
|
SetResistance( ResistanceType.Physical, 20, 25 );
|
|
SetResistance( ResistanceType.Fire, 30, 40 );
|
|
SetResistance( ResistanceType.Poison, 20, 30 );
|
|
SetResistance( ResistanceType.Energy, 10, 20 );
|
|
|
|
SetSkill( SkillName.MagicResist, 15.1, 20.0 );
|
|
SetSkill( SkillName.Tactics, 19.3, 34.0 );
|
|
SetSkill( SkillName.Wrestling, 19.3, 34.0 );
|
|
|
|
Fame = 600;
|
|
Karma = -600;
|
|
|
|
VirtualArmor = 24;
|
|
|
|
PackItem( new SulfurousAsh() );
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Poor );
|
|
}
|
|
|
|
public override bool DeathAdderCharmable{ get{ return true; } }
|
|
|
|
public override bool HasBreath{ get{ return true; } } // fire breath enabled
|
|
public override int Meat{ get{ return 1; } }
|
|
|
|
public LavaSnake(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();
|
|
}
|
|
}
|
|
} |