From c77b53e65f909da11bbdd4e9be6b2046aa1e0f54 Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@gmail.com> Date: Sun, 24 Jan 2021 19:52:07 +0100 Subject: [PATCH] Starting girls graphical improvements --- src/npc/startingGirls/startingGirls.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/npc/startingGirls/startingGirls.js b/src/npc/startingGirls/startingGirls.js index 540ea67aa15..9107e55671c 100644 --- a/src/npc/startingGirls/startingGirls.js +++ b/src/npc/startingGirls/startingGirls.js @@ -1134,9 +1134,17 @@ App.StartingGirls.profile = function(slave) { } option.addComment(text).pulldown(); - options.addOption("Legal status", "indenture", slave) - .addValue("Slave", -1, () => slave.indentureRestrictions = 0) - .addRange(52, 0, ">=", "Indentured Servant"); + const indenture = {active: slave.indenture > -1}; + + options.addOption("Legal status", "active", indenture) + .addValue("Slave", false, () => { + slave.indenture = -1; + slave.indentureRestrictions = 0; + }) + .addValue("Indentured Servant", true, () => { + slave.indenture = 52; + }); + if (slave.indenture > -1) { options.addOption("Remaining weeks", "indenture", slave).showTextBox(); @@ -1235,10 +1243,10 @@ App.StartingGirls.profile = function(slave) { .showTextBox({large: true, forceString: true}) .addComment("Use complete, capitalized and punctuated sentences."); } - options.addOption("Description", "desc", slave.custom).showTextBox().addComment("Use complete, capitalized and punctuated sentences."); + options.addOption("Description", "desc", slave.custom).showTextBox({large: true}) + .addComment("Use complete, capitalized and punctuated sentences."); options.addOption("Label", "label", slave.custom).showTextBox().addComment("Use a short phrase"); - el.append(options.render()); return el; }; -- GitLab