diff --git a/src/js/economyJS.js b/src/js/economyJS.js index e6308a85e7c8181f19f36f30592032aea0826d7c..c4c0062aca9c24dfaa9a36ac24e71ae44cc7561a 100644 --- a/src/js/economyJS.js +++ b/src/js/economyJS.js @@ -580,7 +580,7 @@ window.calculateCosts = (function() { /** * @param {App.Entity.SlaveState} s - * @returns {number} + * @returns {Array} */ window.getSlaveCostArray = function(s) { if (!s) { @@ -717,7 +717,7 @@ window.getSlaveCostArray = function(s) { } if (s.geneticQuirks.macromastia === 2) { if (V.geneticMappingUpgrade >= 1) { - retval.push({text: "Additional dietary supplements due to lipedema", value: foodCost * 0.2}); + retval.push({text: "Additional dietary supplements due to macromastia", value: foodCost * 0.2}); } else { retval.push({text: "Adjustment for unusual dietary deficiencies", value: foodCost * 0.2}); } @@ -1004,6 +1004,10 @@ window.getSlaveCostArray = function(s) { return retval; }; +/** + * @param {App.Entity.SlaveState} s + * @returns {Number} + */ window.getSlaveCost = function(s) { return getSlaveCostArray(s).reduce((result, {value})=>result + value, 0); };