diff --git a/js/003-data/slaveMods.js b/js/003-data/slaveMods.js index cbbed794d763e761bb91bcc346dc4792e4ce7d45..70e41dc98207ee1a087d7d818a4444a53e2896be 100644 --- a/js/003-data/slaveMods.js +++ b/js/003-data/slaveMods.js @@ -392,11 +392,6 @@ App.Medicine.Modification.hairStyles = { title: "Very long", hLength: 100 }, - { - title: "Apply extensions", - onApplication: function(slave) { slave.hLength += 10; }, - requirements: slave => !slave.bald && slave.hLength < 150 && slave.hLength > 0 - }, ] }; diff --git a/src/facilities/salon/salonPassage.js b/src/facilities/salon/salonPassage.js index 779b3487c041eeb8cd3621d2ac3e20f011c96b8e..895f04ef4d93500dae78dbe81a93176a36bc28b1 100644 --- a/src/facilities/salon/salonPassage.js +++ b/src/facilities/salon/salonPassage.js @@ -230,16 +230,13 @@ App.UI.salon = function(slave, cheat = false) { ) { continue; } - const length = style.hasOwnProperty("hLength") ? style.hLength : slave.hLength; + option.addValue(style.title, style.hLength, billMod); + } + if (!slave.bald && slave.hLength < 150) { option.customButton( - style.title, + "Apply extensions", () => { - if (style.hasOwnProperty("hLength")) { - slave.hLength = style.hLength; - } - if (style.hasOwnProperty("onApplication")) { - style.onApplication(slave); - } + slave.hLength += 10; billMod(); }, "Salon"