diff --git a/src/interaction/siWardrobe.js b/src/interaction/siWardrobe.js index c415a2e7cb849df03fe65f4d34f32025a29ba3ec..d87b0171c71567c9e7f253967216c160b5b6fe5e 100644 --- a/src/interaction/siWardrobe.js +++ b/src/interaction/siWardrobe.js @@ -1099,13 +1099,20 @@ App.UI.SlaveInteract.wardrobe = function(slave) { desc = desc || ""; if (clothingData) { if (clothingData.fs) { - if (clothingData.fs.loves) { - const lovers = []; - for (const FS of clothingData.fs.loves) { - lovers.push(App.Data.FutureSociety.records[FS].noun); - } - if (lovers.length > 0) { - desc += (` ${arrayToSentence(lovers)} will love this. `); // TODO: Please move tooltip to array when that becomes possible + const reactions = new Map([ + ["loves", "love"], + ["tolerates", "tolerate"], + ["hates", "hate"], + ]); + for (const [key, value] of reactions) { + if (clothingData.fs[key]) { + const lovers = []; + for (const FS of clothingData.fs[key]) { + lovers.push(App.Data.FutureSociety.records[FS].noun); + } + if (lovers.length > 0) { + desc += (` ${arrayToSentence(lovers)} will ${value} this. `); // TODO: Please move tooltip to array when that becomes possible + } } } }