diff --git a/src/markets/specificMarkets/customSlaveMarket.js b/src/markets/specificMarkets/customSlaveMarket.js index eb6d45e16f26ab9c0d7c940466433cec54ba6104..a3d8539bce51da6a5077f84e6577efab39277d82 100644 --- a/src/markets/specificMarkets/customSlaveMarket.js +++ b/src/markets/specificMarkets/customSlaveMarket.js @@ -66,19 +66,19 @@ App.Markets["Custom Slave"] = function() { const select = document.createElement("select"); for (let i = 0; i < ages.length; i++) { const high = ages[i]; - const low = ages[i - 1] || (ages[i] - 1); // First element of array has nothing before it, obviously, so display low as one less than high. + const low = (ages[i - 1] + 1 ) || (ages[i] - 1); // First element of array has nothing before it, obviously, so display low as one less than high. if (low < V.minimumSlaveAge) { continue; } else if (high > V.retirementAge) { const option = document.createElement("option"); - option.text = `${low + 1}+`; - option.value = low + 1; + option.text = `${low}+`; + option.value = low; select.append(option); break; } const option = document.createElement("option"); - option.text = `${low + 1}-${high}`; + option.text = `${low}-${high}`; option.value = high; if (slave.age === option.value) { option.selected = true;