ModernUO/Projects/UOContent/Items/Weapons/Ranged/Crossbow.cs
Kamron Batman 974062b0d4
feat: Adds leather/metal food, fixes weapons/armors with wrong materials (#1718)
### 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.
2024-04-04 19:43:02 -07:00

41 lines
1.3 KiB
C#

using System;
using ModernUO.Serialization;
namespace Server.Items
{
[Flippable(0xF50, 0xF4F)]
[SerializationGenerator(0, false)]
public partial class Crossbow : BaseRanged
{
[Constructible]
public Crossbow() : base(0xF50)
{
Weight = 7.0;
Layer = Layer.TwoHanded;
Resource = CraftResource.RegularWood;
}
public override int EffectID => 0x1BFE;
public override Type AmmoType => typeof(Bolt);
public override Item Ammo => new Bolt();
public override WeaponAbility PrimaryAbility => WeaponAbility.ConcussionBlow;
public override WeaponAbility SecondaryAbility => WeaponAbility.MortalStrike;
public override int AosStrengthReq => 35;
public override int AosMinDamage => 18;
public override int AosMaxDamage => Core.ML ? 22 : 20;
public override int AosSpeed => 24;
public override float MlSpeed => 4.50f;
public override int OldStrengthReq => 30;
public override int OldMinDamage => 8;
public override int OldMaxDamage => 43;
public override int OldSpeed => 18;
public override int DefMaxRange => 8;
public override int InitMinHits => 31;
public override int InitMaxHits => 80;
}
}