ModernUO/Projects/UOContent.Tests/Tests/Engines
Kamron Batman ef8057d38e
fix: T2A menus only offer what the chosen resource can make (#2695)
## Summary
The T2A crafting menus offered items the chosen resource couldn't make:

- **Tailoring honours the targeted cloth hue.** The menu was built from all cloth in the pack, but the craft consumes only the targeted hue, so it offered items that then failed on resources. `CanCraftItem` / `FilterEntries` / `AnyCraftableInCategory` now take the hue and count with the same helper the craft uses.
- **Uncut cloth counts in the hued path.** The hue-aware count and consume matched only `Cloth`, so targeting uncut cloth gave an empty menu. The hued path now uses `CraftItem`'s equivalence table like the unhued path. `T2ACraftSystem` reuses that table instead of a narrower copy, which also covers the coloured woods and leathers on later-era shards.
- **T2A tinkering only uses iron ingots.** Coloured ingots are refused with a re-prompt. The menu filter now uses the selected ingot, and Make Last for tinkering always resolves to iron, so a coloured choice left over from the gump flow can't be used.

## Testing
- `dotnet build`: 0 warnings, 0 errors
- New `T2AHuedFilterTests`: only cloth of the targeted hue counts, and uncut cloth of the same hue counts toward the recipe
- No test for the tinkering target and message flow; not yet exercised in game
2026-10-20 23:12:10 -07:00
..
AdvancedSearch test: fix shared state, CI-vacuous tests and harness duplication (#2722) 2026-10-18 20:11:33 -07:00
CannedEvil fix: champion minions belong to their spawn (#2717) 2026-10-18 17:48:31 -07:00
Chat feat: Upgrades networking to use io_uring. (#2315) 2026-02-01 16:02:32 -08:00
Craft fix: T2A menus only offer what the chosen resource can make (#2695) 2026-10-20 23:12:10 -07:00
Events test: fix shared state, CI-vacuous tests and harness duplication (#2722) 2026-10-18 20:11:33 -07:00
Factions test: remove trivial, duplicate and content-value tests (#2721) 2026-10-18 20:08:19 -07:00
Harvest test: run tile-dependent tests on synthetic terrain instead of client files (#2725) 2026-10-18 22:07:40 -07:00
Help feat: Upgrades networking to use io_uring. (#2315) 2026-02-01 16:02:32 -08:00
ML Quests feat: Upgrades networking to use io_uring. (#2315) 2026-02-01 16:02:32 -08:00
Party test: fix shared state, CI-vacuous tests and harness duplication (#2722) 2026-10-18 20:11:33 -07:00
Pathing test: run tile-dependent tests on synthetic terrain instead of client files (#2725) 2026-10-18 22:07:40 -07:00
Plants fix: OPL revision hash collided on reordered and repeated properties (#2615) 2026-09-06 21:32:12 -07:00
Spawners test: fix shared state, CI-vacuous tests and harness duplication (#2722) 2026-10-18 20:11:33 -07:00
Veteran Rewards/Character Statue Maker feat: Upgrades networking to use io_uring. (#2315) 2026-02-01 16:02:32 -08:00