diff --git a/src/js/utilJS.tw b/src/js/utilJS.tw index 5afa12b152ff47a082bf0d081b74c0198746446f..8a9a52a3ca3f7623f870dad9d2e20568f6163948 100644 --- a/src/js/utilJS.tw +++ b/src/js/utilJS.tw @@ -363,6 +363,10 @@ window.Categorizer.prototype.cat = function(val, def) { return result; }; +window.numberWithCommas = function(x) { + return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); +} + /* Make everything waiting for this execute. Usage: diff --git a/src/uncategorized/reputation.tw b/src/uncategorized/reputation.tw index c8c70c973c675eae3b8540344a3be4f1f3309f6e..36a494576e421edde380fccaa343b3c5fb816262 100644 --- a/src/uncategorized/reputation.tw +++ b/src/uncategorized/reputation.tw @@ -626,8 +626,8 @@ On formal occasions, you are announced as $PCTitle. <<if $arcologies[0].FSRestartDecoration == 100>> <<if $failedElite > 300>> The Societal Elite @@.red;are plotting your demise@@. - <<set $ui = "start">> - <<set $gameover to "you failed">><<goto "Gameover">> + <<set $gameover to "you failed">> + <<goto "Gameover">> <<elseif $failedElite > 250>> The Societal Elite @@.red;are openly discussing about your failures@@. It would be in your best interests to appease them. <<elseif $failedElite > 200>>