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:
@@ -41,6 +41,15 @@ public class VanillaCoreTests
|
||||
Assert.False(catalog.Things["Chair"].Portable);
|
||||
Assert.Empty(catalog.Things["StudentDesk"].Layers);
|
||||
Assert.Equal([ApparelLayers.Bottom, ApparelLayers.Top], catalog.Things["Dress"].Layers);
|
||||
Assert.True(catalog.Things["Underwear"].Abstract);
|
||||
Assert.Equal("Underwear", catalog.Things["Panties"].Parent);
|
||||
Assert.Equal("Underwear", catalog.Things["Bra"].Parent);
|
||||
Assert.Equal([ApparelLayers.Underwear], catalog.Things["Panties"].Layers);
|
||||
Assert.Equal([ApparelLayers.UpperUnderwear], catalog.Things["Bra"].Layers);
|
||||
Assert.Equal("female", catalog.Things["Bra"].Sex);
|
||||
Assert.Equal(11, catalog.Things["Bra"].Age?.Min);
|
||||
Assert.Contains(ApparelLayers.UpperUnderwear, catalog.Things["Shirt"].FullyCoversLayers);
|
||||
Assert.DoesNotContain(ApparelLayers.UpperUnderwear, catalog.Things["Pants"].FullyCoversLayers);
|
||||
Assert.Contains("Red", catalog.Things["TShirt"].Colors);
|
||||
Assert.True(catalog.Things["PeShirt"].Pe);
|
||||
Assert.True(catalog.Things["Textbook"].Portable);
|
||||
|
||||
Reference in New Issue
Block a user