diff --git a/src/js/slaveCostJS.js b/src/js/slaveCostJS.js index 71b1f4d6ff609bc63820faef340e58f57e1865b0..037cae98028a0bf6eb98f87f45e30e7a1069470e 100644 --- a/src/js/slaveCostJS.js +++ b/src/js/slaveCostJS.js @@ -2281,14 +2281,21 @@ globalThis.slaveCost = function(slave, isStartingSlave = false, followLaws = fal /** Arbitrarily, let's say their milk worth is what they would make in a year. Blocking starting slave for now because milk makes so much money, the estimation makes game start impossible. */ const milkYear = milked.cash * 52; if ((milkYear) > cost && !isStartingSlave) { - return returnDOM ? {cost: milkYear, report: ""} : milkYear; + const milkSpan = App.UI.DOM.makeElement("span", cashFormat(milkYear)); + milkSpan.classList.add("has-tooltip"); + tippy(milkSpan, { + content: `Value as a cow is greater than their value as a sex object. Value is based on a year's fluids with current body.`, + placement: "right", interactive: true, trigger: "click" + }); + return returnDOM ? {cost: milkYear, report: milkSpan} : milkYear; } else { return returnDOM ? {cost: cost, report: costTooltip()} : cost; } function costTooltip() { // Make a link. Clicking the link will display detailed info about that over the top of the page (tooltip-style) - const span = App.UI.DOM.makeElement("span", cashFormat(cost).toString()); + console.log("cost: ", cost); + const span = App.UI.DOM.makeElement("span", cashFormat(cost)); if (V.cheatMode || V.debugMode) { span.tabIndex = 0; span.classList.add("has-tooltip");