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:
parent
b98b0e2964
commit
15a7ce55ce
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue