From 7c20104cdcb351f6fb5309cfe35ddb04bf14b487 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Mon, 1 Nov 2021 01:06:18 -0400
Subject: [PATCH] improve doc

---
 src/descriptions/officeDescription.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/descriptions/officeDescription.js b/src/descriptions/officeDescription.js
index 6a80928d872..0ee1681cab8 100644
--- a/src/descriptions/officeDescription.js
+++ b/src/descriptions/officeDescription.js
@@ -583,11 +583,12 @@ App.Desc.officeDescription = function(lastElement) {
 							}
 							napkinMap.get(slave.napkinShape).push(slave);
 						}
-						// Use toSentence to stitch the types of napkins together, after it has already been used to stich the slaves together
+						// Make a fragment for each napkin type that we have, including the slaves that made that type
 						const napkinTypes = [];
-						for (const [shape, array] of napkinMap) {
-							napkinTypes.push(App.UI.DOM.combineNodes(`${shape} given to you by `, slaveSentence(array)));
+						for (const [shape, slaves] of napkinMap) {
+							napkinTypes.push(App.UI.DOM.combineNodes(`${shape} given to you by `, slaveSentence(slaves)));
 						}
+						// Use toSentence to stitch each napkin type's sentence fragment to the next
 						r.push(App.UI.DOM.toSentence(napkinTypes));
 						App.Events.addNode(el, r);
 					}
-- 
GitLab