fix: T2A tailoring make-last no longer reuses a stale cloth hue for leather (#2694)

## Summary
T2A tailoring Make Last failed after crafting a cloth item and then a leather item. `CraftContext.LastHue` was set only on the hued (cloth) path, so the next Make Last of a leather item took the hue-aware path and failed with "You don't have the resources". The leather path now resets `LastHue` to -1.

## Testing
- `dotnet build`: 0 warnings, 0 errors
- No automated test: driving `TailoringMenu` needs a NetState plus tiledata-backed resources, and CI has no tiledata. Not yet exercised in game.
This commit is contained in:
Kamron Batman 2026-10-06 21:42:23 -07:00 • committed by GitHub
parent b98b0e2964
commit 15a7ce55ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -278,6 +278,8 @@ public class TailoringMenu : ItemListMenu
}
else
{
// Make Last picks the hue-aware overload from LastHue, so a leather craft must clear the cloth hue
context.LastHue = -1;
DefTailoring.CraftSystem.CreateItem(from, itemDef.ItemType, resourceType, _tool, itemDef);
}
}