ModernUO/Scripts/Mobiles/Monsters/Ore Elementals/CopperElemental.cs
2018-09-14 08:41:38 -07:00

82 lines
1.9 KiB
C#

using Server.Items;
namespace Server.Mobiles
{
public class CopperElemental : BaseCreature
{
public override string CorpseName => "an ore elemental corpse";
public override string DefaultName => "a copper elemental";
[Constructible]
public CopperElemental() : this( 2 )
{
}
[Constructible]
public CopperElemental( int oreAmount ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Body = 109;
BaseSoundID = 268;
SetStr( 226, 255 );
SetDex( 126, 145 );
SetInt( 71, 92 );
SetHits( 136, 153 );
SetDamage( 9, 16 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 30, 40 );
SetResistance( ResistanceType.Fire, 30, 40 );
SetResistance( ResistanceType.Cold, 30, 40 );
SetResistance( ResistanceType.Poison, 20, 30 );
SetResistance( ResistanceType.Energy, 10, 20 );
SetSkill( SkillName.MagicResist, 50.1, 95.0 );
SetSkill( SkillName.Tactics, 60.1, 100.0 );
SetSkill( SkillName.Wrestling, 60.1, 100.0 );
Fame = 4800;
Karma = -4800;
VirtualArmor = 26;
Item ore = new CopperOre( oreAmount );
ore.ItemID = 0x19B9;
PackItem( ore );
}
public override void GenerateLoot()
{
AddLoot( LootPack.Average );
AddLoot( LootPack.Gems, 2 );
}
public override bool BleedImmune => true;
public override bool AutoDispel => true;
public override int TreasureMapLevel => 1;
public override void CheckReflect( Mobile caster, ref bool reflect )
{
reflect = true; // Every spell is reflected back to the caster
}
public CopperElemental( 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();
}
}
}