### Summary - Fixes the name `Vegies` to `Veggies` - Adds feeding leather to goats - Adds metal for Lava Lizards - Fixes Bone Helm being classified as plate instead of bone. - Fixes wooden shields not classified as wood. ### Note On OSI, the preferred foods on the animal lore gump doesn't contain all possible favorite food categories. Furthermore, the one listed is not necessarily always the "first" in the list of possible categories. We aren't going to try and fix that since it isn't important.
120 lines
3.2 KiB
C#
120 lines
3.2 KiB
C#
using ModernUO.Serialization;
|
|
using System.Collections.Generic;
|
|
using Server.ContextMenus;
|
|
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
[SerializationGenerator(0, false)]
|
|
public partial class PackLlama : BaseCreature
|
|
{
|
|
[Constructible]
|
|
public PackLlama() : base(AIType.AI_Animal, FightMode.Aggressor)
|
|
{
|
|
Body = 292;
|
|
BaseSoundID = 0x3F3;
|
|
|
|
SetStr(52, 80);
|
|
SetDex(36, 55);
|
|
SetInt(16, 30);
|
|
|
|
SetHits(50);
|
|
SetStam(86, 105);
|
|
SetMana(0);
|
|
|
|
SetDamage(2, 6);
|
|
|
|
SetDamageType(ResistanceType.Physical, 100);
|
|
|
|
SetResistance(ResistanceType.Physical, 25, 35);
|
|
SetResistance(ResistanceType.Fire, 10, 15);
|
|
SetResistance(ResistanceType.Cold, 10, 15);
|
|
SetResistance(ResistanceType.Poison, 10, 15);
|
|
SetResistance(ResistanceType.Energy, 10, 15);
|
|
|
|
SetSkill(SkillName.MagicResist, 15.1, 20.0);
|
|
SetSkill(SkillName.Tactics, 19.2, 29.0);
|
|
SetSkill(SkillName.Wrestling, 19.2, 29.0);
|
|
|
|
Fame = 0;
|
|
Karma = 200;
|
|
|
|
VirtualArmor = 16;
|
|
|
|
Tamable = true;
|
|
ControlSlots = 1;
|
|
MinTameSkill = 11.1;
|
|
|
|
var pack = Backpack;
|
|
|
|
pack?.Delete();
|
|
|
|
pack = new StrongBackpack();
|
|
pack.Movable = false;
|
|
|
|
AddItem(pack);
|
|
}
|
|
|
|
public override string CorpseName => "a llama corpse";
|
|
public override string DefaultName => "a pack llama";
|
|
|
|
public override int Meat => 1;
|
|
public override FoodType FavoriteFood => FoodType.FruitsAndVeggies | FoodType.GrainsAndHay;
|
|
|
|
public override bool OnBeforeDeath()
|
|
{
|
|
if (!base.OnBeforeDeath())
|
|
{
|
|
return false;
|
|
}
|
|
|
|
PackAnimal.CombineBackpacks(this);
|
|
|
|
return true;
|
|
}
|
|
|
|
public override DeathMoveResult GetInventoryMoveResultFor(Item item) => DeathMoveResult.MoveToCorpse;
|
|
|
|
public override bool IsSnoop(Mobile from)
|
|
{
|
|
if (PackAnimal.CheckAccess(this, from))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return base.IsSnoop(from);
|
|
}
|
|
|
|
public override bool OnDragDrop(Mobile from, Item item)
|
|
{
|
|
if (CheckFeed(from, item))
|
|
{
|
|
return true;
|
|
}
|
|
|
|
if (PackAnimal.CheckAccess(this, from))
|
|
{
|
|
AddToBackpack(item);
|
|
return true;
|
|
}
|
|
|
|
return base.OnDragDrop(from, item);
|
|
}
|
|
|
|
public override bool CheckNonlocalDrop(Mobile from, Item item, Item target) => PackAnimal.CheckAccess(this, from);
|
|
|
|
public override bool CheckNonlocalLift(Mobile from, Item item) => PackAnimal.CheckAccess(this, from);
|
|
|
|
public override void OnDoubleClick(Mobile from)
|
|
{
|
|
PackAnimal.TryPackOpen(this, from);
|
|
}
|
|
|
|
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
|
|
{
|
|
base.GetContextMenuEntries(from, list);
|
|
|
|
PackAnimal.GetContextMenuEntries(this, from, list);
|
|
}
|
|
}
|
|
}
|