88 lines
No EOL
1.6 KiB
C#
88 lines
No EOL
1.6 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Server.Items;
|
|
using Server.Targeting;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName( "a broken golem" )]
|
|
public class Golem : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public Golem () : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
|
{
|
|
Name = "a golem";
|
|
Body = 46;
|
|
AnimationMod = 3;
|
|
|
|
SetStr( 767, 945 );
|
|
SetDex( 66, 75 );
|
|
SetInt( 46, 70 );
|
|
|
|
SetHits( 476, 552 );
|
|
|
|
SetDamage( 20, 25 );
|
|
|
|
SetSkill( SkillName.MagicResist, 125.1, 140.0 );
|
|
SetSkill( SkillName.Tactics, 90.1, 100.0 );
|
|
SetSkill( SkillName.HandToHand, 90.1, 100.0 );
|
|
|
|
Fame = 15000;
|
|
Karma = -15000;
|
|
|
|
VirtualArmor = 50;
|
|
|
|
PackItem( new Club() );
|
|
}
|
|
|
|
public override void GenerateLoot()
|
|
{
|
|
AddLoot( LootPack.Rich, 2 );
|
|
}
|
|
|
|
public override bool BardImmune{ get{ return true; } }
|
|
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
|
|
public override bool BleedImmune{ get{ return true; } }
|
|
|
|
public override int GetAngerSound()
|
|
{
|
|
return 541;
|
|
}
|
|
|
|
public override int GetIdleSound()
|
|
{
|
|
return 542;
|
|
}
|
|
|
|
public override int GetDeathSound()
|
|
{
|
|
return 545;
|
|
}
|
|
|
|
public override int GetAttackSound()
|
|
{
|
|
return 562;
|
|
}
|
|
|
|
public override int GetHurtSound()
|
|
{
|
|
return 320;
|
|
}
|
|
|
|
public Golem( 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();
|
|
}
|
|
}
|
|
} |