From bdd520fab6b285341bff1af5c62c1acd7e880138 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Mon, 14 Mar 2022 01:36:02 -0400
Subject: [PATCH] 1. `ibc.kinship` requires slaves, not IDs 2. Add
 `strictBindCallApply` typescript parameter since `ibc` functions are all now
 bound functions and otherwise lose their previously-enforced typesafety.

---
 src/npc/interaction/passage/fSlaveImpreg.js | 2 +-
 tsconfig.json                               | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/npc/interaction/passage/fSlaveImpreg.js b/src/npc/interaction/passage/fSlaveImpreg.js
index fbc706735b3..ca912b74ee6 100644
--- a/src/npc/interaction/passage/fSlaveImpreg.js
+++ b/src/npc/interaction/passage/fSlaveImpreg.js
@@ -11,7 +11,7 @@ App.Interact.fSlaveImpregChoosePartner = class extends App.Interact.BaseChoosePa
 	}
 
 	renderDetail(candidate, container) {
-		const kinship = ibc.kinship(candidate.ID, this.slave.ID);
+		const kinship = ibc.kinship(candidate, this.slave);
 		if (V.inbreeding && kinship > 0) {
 			let adj = "";
 			if (kinship >= 0.5) {
diff --git a/tsconfig.json b/tsconfig.json
index 2700b989a42..39224e2d7b9 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -7,7 +7,8 @@
 		"noEmit": true,
 		"target": "es2021",
 		"noImplicitAny": false,
-		"disableSizeLimit": true
+		"disableSizeLimit": true,
+		"strictBindCallApply": true
 	},
 	"include": [
 		"js/**/*.js",
-- 
GitLab