ModernUO/Projects/UOContent/Items/Weapons/Ranged
Kamron Batman 0f89870793
fix: ranged weapon crafting falls back to the recipe resource (#2719)
`BaseRanged.OnCraft` passed the raw resource type to `ApplyWoodBonuses`, which can be null; `CraftResources.GetFromType` threw on the null key and crashed the server. Every other `OnCraft` override already falls back to `craftItem.Resources[0].ItemType` — `BaseRanged` now does the same.

`GetFromType` also returns `CraftResource.None` for a null type, matching its documented contract for unregistered types, so other callers can't hit the same throw.
2026-10-18 18:10:03 -07:00
..
AmmoRecovery.cs refactor(archery): centralize SE ammo auto-recovery off PlayerMobile (#2496) 2026-06-21 23:22:55 -07:00
AssassinsShortbow.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
BarbedLongbow.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
BaseRanged.cs fix: ranged weapon crafting falls back to the recipe resource (#2719) 2026-10-18 18:10:03 -07:00
Bow.cs fix: Optimizes items to use default weights. (Part 4) (#2243) 2025-07-24 23:29:29 -07:00
CompositeBow.cs fix: Optimizes items to use default weights. (Part 4) (#2243) 2025-07-24 23:29:29 -07:00
Crossbow.cs fix: Optimizes items to use default weights. (Part 4) (#2243) 2025-07-24 23:29:29 -07:00
FrozenLongbow.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
HeavyCrossbow.cs fix: Optimizes items to use default weights. (Part 4) (#2243) 2025-07-24 23:29:29 -07:00
JukaBow.cs feat: Adds leather/metal food, fixes weapons/armors with wrong materials (#1718) 2024-04-04 19:43:02 -07:00
LightweightShortbow.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
LongbowOfMight.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
MysticalShortbow.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
RangersShortbow.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00
RepeatingCrossbow.cs fix: Optimizes items to use default weights. (Part 4) (#2243) 2025-07-24 23:29:29 -07:00
SlayerLongbow.cs fix: Updates serialization to use v2.0 (#998) 2022-04-17 08:02:15 -07:00