From 56fb13483a2ddfb2a61db0fafa52ecb2a7b45123 Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Tue, 5 Jan 2021 09:00:12 -0500
Subject: [PATCH] Added .partners to PC object

---
 .../backwardsCompatibility/datatypeCleanup.js |  3 +++
 src/player/js/PlayerState.js                  | 19 +++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/src/data/backwardsCompatibility/datatypeCleanup.js b/src/data/backwardsCompatibility/datatypeCleanup.js
index 25f92ba850c..47ceb643ef2 100644
--- a/src/data/backwardsCompatibility/datatypeCleanup.js
+++ b/src/data/backwardsCompatibility/datatypeCleanup.js
@@ -1351,6 +1351,9 @@ globalThis.PCDatatypeCleanup = function() {
 	if (typeof V.PC.ID === "undefined") {
 		V.PC.ID = -1;
 	}
+	if (typeof V.PC.partners !== "object") {
+		V.PC.partners = new Set();
+	}
 
 	/* None of these are in use */
 	PC.bellyPreg = PC.belly;
diff --git a/src/player/js/PlayerState.js b/src/player/js/PlayerState.js
index 25b76da113b..37909030c9e 100644
--- a/src/player/js/PlayerState.js
+++ b/src/player/js/PlayerState.js
@@ -1540,6 +1540,25 @@ App.Entity.PlayerState = class PlayerState {
 		 * 0: sated
 		 */
 		this.need = 0;
+		/**
+		 * A list of IDs of anyone the PC has ever slept with.
+		 *
+		 * Only contains unique entries.
+		 *
+		 * | ***ID*** | **Type**               |
+		 * |---------:|:-----------------------|
+		 * | *1+*     | Normal slave		   |
+		 * | *-2*     | Citizen*               |
+		 * | *-3*     | PC's former master*    |
+		 * | *-4*     | Fellow arcology owner* |
+		 * | *-6*     | Societal Elite*        |
+		 * | *-8*     | Animal*                |
+		 * | *-9*     | Futanari Sister*       |
+		 *
+		 * **not currently implemented*
+		 * @type {Set<number>}
+		 */
+		this.partners = new Set();
 		/**
 		 * attraction to women
 		 * * 0 - 5: disgusted by women
-- 
GitLab