From b4e02f5ceb5a883ccc40a33059edda31f4fac5f9 Mon Sep 17 00:00:00 2001
From: Skriv <skrivelese@gmail.com>
Date: Mon, 30 Dec 2019 23:23:46 +0100
Subject: [PATCH] slave.livingRules to slave.rules.living

---
 src/endWeek/healthFunctions.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/endWeek/healthFunctions.js b/src/endWeek/healthFunctions.js
index 20df7e46ba5..87ef2d66064 100644
--- a/src/endWeek/healthFunctions.js
+++ b/src/endWeek/healthFunctions.js
@@ -287,12 +287,12 @@ window.tired = function tired(slave) {
 
 	// Living Conditions
 	// PM - What they return to after a day of work. Do this after the assignment to allow kinder facility decorations.
-	if (slave.livingRules === "spare") {
+	if (slave.rules.living === "spare") {
 		livingRules -= 1; // Barely reduce tiredness while sleeping in spare conditions
 		if (V.dormitory < V.dormitoryPopulation) {
 			livingRules += 5; // Overcrowding penalty
 		}
-	} else if (slave.livingRules === "luxurious") {
+	} else if (slave.rules.living === "luxurious") {
 		livingRules -= normalRandInt(10); // Reduces tired by an average of 10 points while sleeping under luxurious conditions
 		// PM - Luxury rooms are rooms and not subject to overcrowding penalties.
 	} else {
-- 
GitLab