From a693be36024705e62f41b3c53aaaf76f1de9b07c Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Sun, 13 Aug 2023 20:09:03 -0400 Subject: [PATCH] Fix repeated text, stray spaces in links. --- src/facilities/penthouse/HGSelect.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/facilities/penthouse/HGSelect.js b/src/facilities/penthouse/HGSelect.js index 1001e4333b0..bc70420ccf8 100644 --- a/src/facilities/penthouse/HGSelect.js +++ b/src/facilities/penthouse/HGSelect.js @@ -147,6 +147,7 @@ App.Facilities.HGSelect = function() { } App.Events.addNode(f, r, "div", "indent"); + r = []; if (V.seePreg !== 0) { if (V.universalRulesImpregnation === "HG") { App.UI.DOM.appendNewElement("div", f, `${HGName} is responsible for impregnating fertile slaves.`); @@ -183,19 +184,19 @@ App.Facilities.HGSelect = function() { } else { App.UI.DOM.appendNewElement("div", f, `However, ${S.HeadGirl.slaveName} cannot perform this duty.`); } - r.push(App.UI.DOM.link(` Rescind ${his} impregnation responsibility`, () => { + r.push(App.UI.DOM.link(`Rescind ${his} impregnation responsibility`, () => { V.universalRulesImpregnation = "none"; App.UI.reload(); })); - r.push(App.UI.DOM.link(` See to it yourself`, () => { + r.push(App.UI.DOM.link(`See to it yourself`, () => { V.universalRulesImpregnation = "PC"; App.UI.reload(); })); - f.append(App.UI.DOM.generateLinksStrip(r)); + f.append(' ', App.UI.DOM.generateLinksStrip(r)); } else { if (canPenetrate(S.HeadGirl) && S.HeadGirl.pubertyXY === 1) { - App.UI.DOM.appendNewElement("div", f, `${HGName} is capable of impregnating slaves, but it's not part of ${his} responsibilities.`).append( - App.UI.DOM.link(` Assign ${him} to impregnate`, () => { + App.UI.DOM.appendNewElement("div", f, `${HGName} is capable of impregnating slaves, but it's not part of ${his} responsibilities. `).append( + App.UI.DOM.link(`Assign ${him} to impregnate`, () => { V.universalRulesImpregnation = "HG"; App.UI.reload(); })); -- GitLab