diff --git a/src/interaction/wardrobeUse.js b/src/interaction/wardrobeUse.js index 0cef5bc29b8bd1a15a6b555ff038bd91e7d00d08..1acdaf331cc7e6b727467cff7007184e7c5101dd 100644 --- a/src/interaction/wardrobeUse.js +++ b/src/interaction/wardrobeUse.js @@ -663,7 +663,7 @@ App.UI.Wardrobe.vaginalAttachment = function(slave) { } else if (slave.vaginalAccessory === "none") { return jQuery('#vaginalAttachment').empty(); } - // <<vaginalAttachmentDescription>> + // App.Desc.vaginalAccessory(slave); const { // eslint-disable-next-line no-unused-vars diff --git a/src/npc/descriptions/crotch/vaginalAccessory.js b/src/npc/descriptions/crotch/vaginalAccessory.js index 82997f254a2086f0181ae0c25577bd3f8d8469e1..cf96284081791d1ccb8a3d6551ba1dceb6b02d27 100644 --- a/src/npc/descriptions/crotch/vaginalAccessory.js +++ b/src/npc/descriptions/crotch/vaginalAccessory.js @@ -96,3 +96,29 @@ App.Desc.vaginalAccessory = function(slave) { return r.join(" "); }; + +/** + * @param {App.Entity.SlaveState} slave + * @returns {string} + */ +App.Desc.vaginalAccessory = function(slave) { + const r = []; + const { + his, He, His + } = getPronouns(slave); + switch (slave.vaginalAttachment) { + case "vibrator": + // TODO: not sure about this description + r.push(`${He} looks distinctly uncomfortable as ${his} dildo buzzes every so often.`); + if (slave.chastityVagina) { + r.push(`The chastity belt locking it in place means there is no escape.`); + } + // TODO: add descriptions for slaves with gaping+ vaginas + break; + default: + if (slave.vaginalAccessory !== "none") { + r.push(`${His} current accessory is silent.`); + } + } + return r.join(" "); +}; diff --git a/src/utility/descriptionWidgetsStyle.tw b/src/utility/descriptionWidgetsStyle.tw deleted file mode 100644 index dc5f59f7ed1c48fd1aa24b2961087c9d6cb954ad..0000000000000000000000000000000000000000 --- a/src/utility/descriptionWidgetsStyle.tw +++ /dev/null @@ -1,21 +0,0 @@ -:: clothing description widgets [widget nobr] - -<<widget "vaginalAccessoryDescription">> -<</widget>> - -<<widget "vaginalAttachmentDescription">> -<<switch $activeSlave.vaginalAttachment>> -<<case "vibrator">> - /* TODO: not sure about this description */ - $He looks distinctly uncomfortable as $his dildo buzzes every so often. - <<if $activeSlave.chastityVagina>> - The chastity belt locking it in place means there is no escape. - <</if>> - /* TODO: add descriptions for slaves with gaping+ vaginas */ -<<default>> - <<if $activeSlave.vaginalAccessory != "none">> - $His current accessory is silent. - <</if>> -<</switch>> -<</widget>> -