diff --git a/src/display.ts b/src/display.ts index f5721c38..4004dbd8 100644 --- a/src/display.ts +++ b/src/display.ts @@ -103,6 +103,15 @@ const drawFeature = (svg: SVGSVGElement, face: Face, info: FeatureInfo) => { return; } + if ( + ["suit", "suit2"].includes(face.jersey.id) && + (info.name == "accessories" || info.name == "glasses") + ) { + //Don't show headband, facemask, etc if person is wearing a suit + //might be a smarter way to do that includes statement, but wanted to throw in all non-jersey clothing. Only those 2 right now + return; + } + // @ts-ignore let featureSVGString = svgs[info.name][feature.id]; if (!featureSVGString) { diff --git a/svgs/jersey/suit.svg b/svgs/jersey/suit.svg new file mode 100644 index 00000000..8b18f23a --- /dev/null +++ b/svgs/jersey/suit.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/svgs/jersey/suit2.svg b/svgs/jersey/suit2.svg new file mode 100644 index 00000000..2ca7e138 --- /dev/null +++ b/svgs/jersey/suit2.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +