From 51dec7de346ef422a562896cec9a56e9029f18eb Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 16 May 2021 17:31:59 -0400 Subject: [PATCH] tail fixes --- src/js/salon.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/js/salon.js b/src/js/salon.js index 7ca8e61642c..5c8b4841a8e 100644 --- a/src/js/salon.js +++ b/src/js/salon.js @@ -369,11 +369,10 @@ App.Medicine.Salon.tail = function(slave, {primaryTailColor = 0, secondaryTailCo "Match current hair", () => { slave.tailColor = slave.hColor; - App.Art.refreshSlaveArt(slave, 3, "art-frame"); if (!cheat) { cashX(forceNeg(V.modCost), "slaveMod", slave); } - apply(); + App.UI.reload(); } ) ); @@ -408,7 +407,7 @@ App.Medicine.Salon.tail = function(slave, {primaryTailColor = 0, secondaryTailCo if (!cheat) { cashX(forceNeg(V.modCost), "slaveMod", slave); } - App.Medicine.Salon.tail(slave); // discard selections after locking them in. + App.UI.reload(); // discard selections after locking them in. } ) ); @@ -439,12 +438,6 @@ App.Medicine.Salon.tail = function(slave, {primaryTailColor = 0, secondaryTailCo function apply() { App.Art.refreshSlaveArt(slave, 3, "art-frame"); - App.Medicine.Salon.tail( - slave, - { - primaryTailColor: primaryTailColor, - secondaryTailColor: secondaryTailColor, - } - ); + jQuery("#salon-tail").empty().append(tailDye()); } }; -- GitLab