Enhance apparel definitions: Introduce 'UpperUnderwear' layer and related items (Bra, SportsBra, SoftBra) to support gender-specific clothing. Update inventory and dress generation logic to accommodate new layers and ensure proper coverage. Adjust localization for new apparel terms and refine tests for underwear functionality.
This commit is contained in:
@@ -278,9 +278,11 @@ internal static class PersonCardReader
|
||||
}
|
||||
|
||||
IReadOnlyList<string> layerIds = [];
|
||||
IReadOnlyList<string> fullyCovers = [];
|
||||
if (catalog is not null && catalog.Things.TryGetValue(item.Def, out var def))
|
||||
{
|
||||
layerIds = def.Layers;
|
||||
fullyCovers = def.FullyCoversLayers;
|
||||
}
|
||||
|
||||
var layers = layerIds
|
||||
@@ -295,7 +297,8 @@ internal static class PersonCardReader
|
||||
item.Condition,
|
||||
catalog is null
|
||||
? ApparelCondition.BandId(null, item.Condition)
|
||||
: ApparelCondition.Label(catalog, locale, item.Condition)));
|
||||
: ApparelCondition.Label(catalog, locale, item.Condition),
|
||||
fullyCovers));
|
||||
}
|
||||
|
||||
return rows;
|
||||
|
||||
Reference in New Issue
Block a user