Skip to content
Snippets Groups Projects
Commit 0068124d authored by lowercasedonkey's avatar lowercasedonkey
Browse files

fix bug if player actually used the default desc

parent 3856a545
No related branches found
No related tags found
No related merge requests found
...@@ -19,9 +19,9 @@ App.UI.toyShop = function() { ...@@ -19,9 +19,9 @@ App.UI.toyShop = function() {
} }
function init() { function init() {
buttPlugName = "spade-shaped plug"; buttPlugName = "";
buttPlugData = { buttPlugData = {
name: "Spade-shaped plug", name: "",
width: 1, width: 1,
length: 1 length: 1
}; };
...@@ -80,7 +80,7 @@ App.UI.toyShop = function() { ...@@ -80,7 +80,7 @@ App.UI.toyShop = function() {
) )
); );
build.append(App.UI.DOM.generateLinksStrip(linkArray)); build.append(App.UI.DOM.generateLinksStrip(linkArray));
} else { } else if (buttPlugName){
el.append(apply()); el.append(apply());
} }
...@@ -117,7 +117,7 @@ App.UI.toyShop = function() { ...@@ -117,7 +117,7 @@ App.UI.toyShop = function() {
} }
function desc() { function desc() {
const value = App.UI.DOM.makeElement("div", `Enter value here as it will appear in descriptions: a standard "butt plug" `); const value = App.UI.DOM.makeElement("div", `Enter shape here as it will appear in descriptions `);
value.append(App.UI.DOM.makeTextBox( value.append(App.UI.DOM.makeTextBox(
buttPlugName, buttPlugName,
v => { v => {
...@@ -125,12 +125,12 @@ App.UI.toyShop = function() { ...@@ -125,12 +125,12 @@ App.UI.toyShop = function() {
refresh(); refresh();
} }
)); ));
App.UI.DOM.appendNewElement("span", value, ` Your slave has a ${buttPlugName} wedged firmly in their asshole.`, "note"); App.UI.DOM.appendNewElement("span", value, ` Your slave has a standard ${buttPlugName ? buttPlugName : `spade-shaped plug`} wedged firmly in their asshole.`, "note");
return value; return value;
} }
function title() { function title() {
const title = App.UI.DOM.makeElement("div", `Enter title as it will appear in lists of choices; "Butt plug" `); const title = App.UI.DOM.makeElement("div", `Enter title as it will appear in lists of choices `);
title.append(App.UI.DOM.makeTextBox( title.append(App.UI.DOM.makeTextBox(
buttPlugData.name, buttPlugData.name,
v => { v => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment