diff --git a/src/js/utilsFC.js b/src/js/utilsFC.js index cc1f4d7f9477d81adc1149f9655c1445ad381917..840ec398f5135e3a2310aebded00ba54d2384628 100644 --- a/src/js/utilsFC.js +++ b/src/js/utilsFC.js @@ -948,9 +948,10 @@ window.Categorizer.prototype.cat = function(val, def) { /** * Returns numbers as text, e.g. 10 as "ten", according to the player's settings * @param {number} x + * @param {string} printText * @returns {string} */ -window.num = function(x) { +window.num = function(x, printText = '') { const max = V.showNumbersMax; const ONE_TO_NINETEEN = [ @@ -1025,6 +1026,10 @@ window.num = function(x) { return words.filter(isTruthy).join(" "); } + if (printText !== '') { + return inEnglish(x); + } + /** * append the word for a scale. Made for use with Array.map * @param {string} chunk diff --git a/src/uncategorized/futureSociety.tw b/src/uncategorized/futureSociety.tw index 21f231b9575b21acd8293b11ff37a1e3b1710b59..c9abb5331bce3567df65ff975ede62ca97388e60 100644 --- a/src/uncategorized/futureSociety.tw +++ b/src/uncategorized/futureSociety.tw @@ -495,14 +495,7 @@ You have unlocked <span class="detail"> -<<if ($FSGotRepCredits == 7)>>seven -<<elseif ($FSGotRepCredits == 6)>>six -<<elseif ($FSGotRepCredits == 5)>>five -<<elseif ($FSGotRepCredits == 4)>>four -<<elseif ($FSGotRepCredits == 3)>>three -<<elseif ($FSGotRepCredits == 2)>>two -<<else>>one -<</if>> + <<= num($FSGotRepCredits, text)>> of <<print $FSCreditCountString>> </span> possible societal customizations.