diff --git a/src/markets/specificMarkets/customSlaveMarket.js b/src/markets/specificMarkets/customSlaveMarket.js index 4d0a9b9e5e1296a3fcf23538dc5e406a79ff8a66..a3d8539bce51da6a5077f84e6577efab39277d82 100644 --- a/src/markets/specificMarkets/customSlaveMarket.js +++ b/src/markets/specificMarkets/customSlaveMarket.js @@ -60,25 +60,25 @@ App.Markets["Custom Slave"] = function() { const el = document.createElement("div"); const ages = [2, 4, 6, 9, 12, 14, 17, 19, 24, 29, 39, 49, 59, 69, 79, 89, 99, 109, 119, 129, 130]; - createDescription(el, description, "age-text"); + createDescription(el, description, "age"); // Choices 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;