mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
* OCT17 Minor gump cleanup and XML cleanup. * Improvements - Skill Gain is no longer redundantly checked against the same values inside of XMLSpawner. - AI_Animal (which was not used and just defaulted to AI_Melee) along with AI_Beserk, AI_Predator, and AI_Thief have been safely removed. - ItemFlags.cs has been moved from XMLSpawner to MISC. - Removed some misc double calls. * Needed for recent AI fix. * Item Fix
132 lines
3.4 KiB
C#
132 lines
3.4 KiB
C#
namespace Server.Mobiles
|
|
{
|
|
[CorpseName("a bird corpse")]
|
|
public class Bird : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public Bird()
|
|
: base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
|
{
|
|
if (Utility.RandomBool())
|
|
{
|
|
Hue = 0x901;
|
|
|
|
switch (Utility.Random(3))
|
|
{
|
|
case 0:
|
|
Name = "a crow";
|
|
break;
|
|
case 2:
|
|
Name = "a raven";
|
|
break;
|
|
case 1:
|
|
Name = "a magpie";
|
|
break;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Hue = Utility.RandomBirdHue();
|
|
Name = NameList.RandomName("bird");
|
|
}
|
|
|
|
Body = 6;
|
|
BaseSoundID = 0x1B;
|
|
|
|
SetStr(10);
|
|
SetDex(25, 35);
|
|
SetInt(10);
|
|
|
|
SetDamage(0);
|
|
|
|
SetDamageType(ResistanceType.Physical, 100);
|
|
|
|
SetSkill(SkillName.Wrestling, 4.2, 6.4);
|
|
SetSkill(SkillName.Tactics, 4.0, 6.0);
|
|
SetSkill(SkillName.MagicResist, 4.0, 5.0);
|
|
|
|
Fame = 150;
|
|
Karma = 0;
|
|
|
|
Tamable = true;
|
|
ControlSlots = 1;
|
|
MinTameSkill = -6.9;
|
|
}
|
|
|
|
public Bird(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override MeatType MeatType => MeatType.Bird;
|
|
public override int Meat => 1;
|
|
public override int Feathers => 25;
|
|
public override FoodType FavoriteFood => FoodType.FruitsAndVegies | FoodType.GrainsAndHay;
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0);
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
[CorpseName("a bird corpse")]
|
|
public class TropicalBird : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public TropicalBird()
|
|
: base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
|
{
|
|
Hue = Utility.RandomBirdHue();
|
|
Name = "a tropical bird";
|
|
|
|
Body = 6;
|
|
BaseSoundID = 0xBF;
|
|
|
|
SetStr(10);
|
|
SetDex(25, 35);
|
|
SetInt(10);
|
|
|
|
SetDamage(0);
|
|
|
|
SetDamageType(ResistanceType.Physical, 100);
|
|
|
|
SetSkill(SkillName.Wrestling, 4.2, 6.4);
|
|
SetSkill(SkillName.Tactics, 4.0, 6.0);
|
|
SetSkill(SkillName.MagicResist, 4.0, 5.0);
|
|
|
|
Fame = 150;
|
|
Karma = 0;
|
|
|
|
Tamable = true;
|
|
ControlSlots = 1;
|
|
MinTameSkill = -6.9;
|
|
}
|
|
|
|
public TropicalBird(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override MeatType MeatType => MeatType.Bird;
|
|
public override int Meat => 1;
|
|
public override int Feathers => 25;
|
|
public override FoodType FavoriteFood => FoodType.FruitsAndVegies | FoodType.GrainsAndHay;
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0);
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
}
|