From 5b498430c829fd8de0560e5ce2afd5db01c73c33 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Sun, 12 Apr 2026 00:31:53 +0100 Subject: [PATCH] feat: base instructions off of male mii --- src/app/api/submit/route.ts | 84 ++++++++++++++++++------------------- src/app/mii/[id]/page.tsx | 12 ++++-- 2 files changed, 50 insertions(+), 46 deletions(-) diff --git a/src/app/api/submit/route.ts b/src/app/api/submit/route.ts index 1704748..c8abe19 100644 --- a/src/app/api/submit/route.ts +++ b/src/app/api/submit/route.ts @@ -228,21 +228,21 @@ export async function POST(request: NextRequest) { eyebrows: { type: miiData.eyebrowType, color: miiData.eyebrowColor, - height: miiData.eyebrowY, - distance: miiData.eyebrowX, - rotation: miiData.eyebrowRotate, - size: miiData.eyebrowScale, - stretch: miiData.eyebrowAspect, + height: miiData.eyebrowY - 10, + distance: miiData.eyebrowX - 4, + rotation: miiData.eyebrowRotate - 6, + size: miiData.eyebrowScale - 4, + stretch: miiData.eyebrowAspect - 3, }, eyes: { main: { type: miiData.eyeType, color: miiData.eyeColor, - height: miiData.eyeY, - distance: miiData.eyeX, - rotation: miiData.eyeRotate, - size: miiData.eyeScale, - stretch: miiData.eyeAspect, + height: miiData.eyeY - 12, + distance: miiData.eyeX - 2, + rotation: miiData.eyeRotate - 4, + size: miiData.eyeScale - 4, + stretch: miiData.eyeAspect - 3, }, eyelashesTop: { type: miiData.eyelashUpperType, @@ -291,47 +291,47 @@ export async function POST(request: NextRequest) { }, nose: { type: miiData.noseType, - height: miiData.noseY, - size: miiData.noseScale, + height: miiData.noseY - 9, + size: miiData.noseScale - 4, }, lips: { type: miiData.mouthType, color: miiData.mouthColor, - height: miiData.mouthY, + height: miiData.mouthY - 13, rotation: miiData.mouthRotate, - size: miiData.mouthScale, - stretch: miiData.mouthAspect, + size: miiData.mouthScale - 4, + stretch: miiData.mouthAspect - 3, // uh oh, no lipstick hasLipstick: false, }, ears: { type: miiData.earType, - height: miiData.earY, - size: miiData.earScale, + height: miiData.earY - 4, + size: miiData.earScale - 2, }, glasses: { type: miiData.glassType1, type2: miiData.glassType2, ringColor: miiData.glassColor1, shadesColor: miiData.glassColor2, - height: miiData.glassY, - size: miiData.glassScale, - stretch: miiData.glassAspect, + height: miiData.glassY - 11, + size: miiData.glassScale - 4, + stretch: miiData.glassAspect - 3, }, other: { wrinkles1: { type: miiData.wrinkleLowerType, - height: miiData.wrinkleLowerY, - distance: miiData.wrinkleLowerX, - size: miiData.wrinkleLowerScale, - stretch: miiData.wrinkleLowerAspect, + height: miiData.wrinkleLowerY - 15, + distance: miiData.wrinkleLowerX - 2, + size: miiData.wrinkleLowerScale - 6, + stretch: miiData.wrinkleLowerAspect - 3, }, wrinkles2: { type: miiData.wrinkleUpperType, - height: miiData.wrinkleUpperY, - distance: miiData.wrinkleUpperX, - size: miiData.wrinkleUpperScale, - stretch: miiData.wrinkleUpperAspect, + height: miiData.wrinkleUpperY - 23, + distance: miiData.wrinkleUpperX - 7, + size: miiData.wrinkleUpperScale - 6, + stretch: miiData.wrinkleUpperAspect - 3, }, beard: { type: miiData.beardType, @@ -340,11 +340,11 @@ export async function POST(request: NextRequest) { moustache: { type: miiData.mustacheType, color: miiData.mustacheColor, - height: miiData.mustacheY, + height: miiData.mustacheY - 10, // uh oh, no flipped isFlipped: false, - size: miiData.mustacheScale, - stretch: miiData.mustacheAspect, + size: miiData.mustacheScale - 4, + stretch: miiData.mustacheAspect - 3, }, goatee: { type: miiData.beardShortType, @@ -352,25 +352,25 @@ export async function POST(request: NextRequest) { }, mole: { type: miiData.moleX != 0, - height: miiData.moleY, - distance: miiData.moleX, - size: miiData.moleScale, + height: miiData.moleY - 20, + distance: miiData.moleX - 2, + size: miiData.moleScale - 4, }, eyeShadow: { type: miiData.makeup0, color: miiData.makeup0Color, - height: miiData.makeup0Y, - distance: miiData.makeup0X, - size: miiData.makeup0Scale, - stretch: miiData.makeup0Aspect, + height: miiData.makeup0Y - 12, + distance: miiData.makeup0X - 1, + size: miiData.makeup0Scale - 6, + stretch: miiData.makeup0Aspect - 3, }, blush: { type: miiData.makeup1, color: miiData.makeup1Color, - height: miiData.makeup1Y, - distance: miiData.makeup1X, - size: miiData.makeup1Scale, - stretch: miiData.makeup1Aspect, + height: miiData.makeup1Y - 19, + distance: miiData.makeup1X - 6, + size: miiData.makeup1Scale - 5, + stretch: miiData.makeup1Aspect - 3, }, }, height: miiData.height, diff --git a/src/app/mii/[id]/page.tsx b/src/app/mii/[id]/page.tsx index 73db295..73efc43 100644 --- a/src/app/mii/[id]/page.tsx +++ b/src/app/mii/[id]/page.tsx @@ -385,10 +385,14 @@ export default async function MiiPage({ params }: Props) { {/* Instructions */} {mii.platform === "SWITCH" && (
-

- - Instructions -

+
+

+ + Instructions +

+ +

All instructions are based off of the default Male Mii.

+
{mii.youtubeId && (