From 2d1007b10b232702ed3fa4c79da81b8bc5638917 Mon Sep 17 00:00:00 2001
From: Anu <anulithic@gmail.com>
Date: Sun, 23 Feb 2025 15:03:18 -0800
Subject: [PATCH] Scale height by sex when generating related slaves

---
 src/npc/generate/generateRelatedSlave.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/npc/generate/generateRelatedSlave.js b/src/npc/generate/generateRelatedSlave.js
index 30f3380f7aa..2aaf2aa4ff4 100644
--- a/src/npc/generate/generateRelatedSlave.js
+++ b/src/npc/generate/generateRelatedSlave.js
@@ -591,6 +591,9 @@ globalThis.generateRelatedSlave = (function() {
 		slave.face = Math.clamp(slave.face + random(15, 25), -100, 100);
 		slave.boobs = either(200, 300, 400, 450, 500, 550, 600, 700);
 
+		// apply male/female average height ratio of 1:1.07 - actual height will be adjusted in ageFixup()
+		slave.natural.height = Math.round(slave.natural.height / 1.07);
+
 		// alter genitals
 		slave.dick = 0;
 		slave.balls = 0;
@@ -651,6 +654,9 @@ globalThis.generateRelatedSlave = (function() {
 		slave.face = Math.clamp(slave.face - random(15, 25), -100, 100);
 		slave.boobs = either(100, 200);
 
+		// apply male/female average height ratio of 1:1.07 - actual height will be adjusted in ageFixup()
+		slave.natural.height = Math.round(slave.natural.height * 1.07);
+
 		// alter genitals
 		slave.vagina = -1;
 		slave.clit = 0;
-- 
GitLab