From ee0b208e45f858f75222900feff555662b7df112 Mon Sep 17 00:00:00 2001
From: Anu <anulithic@gmail.com>
Date: Tue, 25 Feb 2025 03:23:41 -0800
Subject: [PATCH] Raise recFSPastoralistTwo maxAge if retirementAge is raised

---
 src/events/recFS/recfsPastoralistTwo.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/events/recFS/recfsPastoralistTwo.js b/src/events/recFS/recfsPastoralistTwo.js
index 82d16b7be97..e5c43b05e9d 100644
--- a/src/events/recFS/recfsPastoralistTwo.js
+++ b/src/events/recFS/recfsPastoralistTwo.js
@@ -17,7 +17,7 @@ App.Events.recFSPastoralistTwo = class recFSPastoralistTwo extends App.Events.Ba
 		let r = [];
 		const contractCost = sexSlaveContractCost();
 		const slave = GenerateNewSlave("XX", {
-			minAge: 32, maxAge: 42, ageOverridesPedoMode: 1, disableDisability: 1
+			minAge: 32, maxAge: Math.max(42, V.retirementAge - 3), ageOverridesPedoMode: 1, disableDisability: 1
 		});
 		slave.origin = "$He offered $himself for voluntary enslavement, hoping to become a valuable source of milk for you.";
 		setHealth(slave, jsRandom(-20, 20), undefined, undefined, 0, 0);
-- 
GitLab