90 lines
2.2 KiB
C#
90 lines
2.2 KiB
C#
using System;
|
|
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[CorpseName("an ogre corpse")]
|
|
public class Ogre : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public Ogre()
|
|
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
|
{
|
|
this.Name = "an ogre";
|
|
this.Body = 1;
|
|
this.BaseSoundID = 427;
|
|
|
|
this.SetStr(166, 195);
|
|
this.SetDex(46, 65);
|
|
this.SetInt(46, 70);
|
|
|
|
this.SetHits(100, 117);
|
|
this.SetMana(0);
|
|
|
|
this.SetDamage(9, 11);
|
|
|
|
this.SetDamageType(ResistanceType.Physical, 100);
|
|
|
|
this.SetResistance(ResistanceType.Physical, 30, 35);
|
|
this.SetResistance(ResistanceType.Fire, 15, 25);
|
|
this.SetResistance(ResistanceType.Cold, 15, 25);
|
|
this.SetResistance(ResistanceType.Poison, 15, 25);
|
|
this.SetResistance(ResistanceType.Energy, 25);
|
|
|
|
this.SetSkill(SkillName.MagicResist, 55.1, 70.0);
|
|
this.SetSkill(SkillName.Tactics, 60.1, 70.0);
|
|
this.SetSkill(SkillName.Wrestling, 70.1, 80.0);
|
|
|
|
this.Fame = 3000;
|
|
this.Karma = -3000;
|
|
|
|
this.VirtualArmor = 32;
|
|
|
|
this.PackItem(new Club());
|
|
}
|
|
|
|
public Ogre(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override bool CanRummageCorpses
|
|
{
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
public override int TreasureMapLevel
|
|
{
|
|
get
|
|
{
|
|
return 1;
|
|
}
|
|
}
|
|
public override int Meat
|
|
{
|
|
get
|
|
{
|
|
return 2;
|
|
}
|
|
}
|
|
public override void GenerateLoot()
|
|
{
|
|
this.AddLoot(LootPack.Average);
|
|
this.AddLoot(LootPack.Potions);
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
} |