ModernUO/Scripts/Mobiles/Monsters/AOS/FleshRenderer.cs
2018-09-14 08:41:38 -07:00

113 lines
2.6 KiB
C#

using Server.Items;
namespace Server.Mobiles
{
public class FleshRenderer : BaseCreature
{
public override string CorpseName => "a fleshrenderer corpse";
public override WeaponAbility GetWeaponAbility() => Utility.RandomBool() ? WeaponAbility.Dismount : WeaponAbility.ParalyzingBlow;
public override bool IgnoreYoungProtection => Core.ML;
public override string DefaultName => "a fleshrenderer";
[Constructible]
public FleshRenderer() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Body = 315;
SetStr( 401, 460 );
SetDex( 201, 210 );
SetInt( 221, 260 );
SetHits( 4500 );
SetDamage( 16, 20 );
SetDamageType( ResistanceType.Physical, 80 );
SetDamageType( ResistanceType.Poison, 20 );
SetResistance( ResistanceType.Physical, 80, 90 );
SetResistance( ResistanceType.Fire, 50, 60 );
SetResistance( ResistanceType.Cold, 50, 60 );
SetResistance( ResistanceType.Poison, 100 );
SetResistance( ResistanceType.Energy, 70, 80 );
SetSkill( SkillName.DetectHidden, 80.0 );
SetSkill( SkillName.MagicResist, 155.1, 160.0 );
SetSkill( SkillName.Meditation, 100.0 );
SetSkill( SkillName.Tactics, 100.0 );
SetSkill( SkillName.Wrestling, 90.1, 100.0 );
Fame = 23000;
Karma = -23000;
VirtualArmor = 24;
}
public override void GenerateLoot()
{
AddLoot( LootPack.UltraRich, 2 );
}
public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( !Summoned && !NoKillAwards && DemonKnight.CheckArtifactChance( this ) )
DemonKnight.DistributeArtifact( this );
}
public override bool AutoDispel => true;
public override bool BardImmune => !Core.SE;
public override bool Unprovokable => Core.SE;
public override bool AreaPeaceImmune => Core.SE;
public override Poison PoisonImmune => Poison.Lethal;
public override int TreasureMapLevel => 1;
public override int GetAttackSound()
{
return 0x34C;
}
public override int GetHurtSound()
{
return 0x354;
}
public override int GetAngerSound()
{
return 0x34C;
}
public override int GetIdleSound()
{
return 0x34C;
}
public override int GetDeathSound()
{
return 0x354;
}
public FleshRenderer( 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 == 660 )
BaseSoundID = -1;
}
}
}