diff --git a/src/js/economyJS.js b/src/js/economyJS.js index 6d92bf1959e3130bbe18910b26b7e9ee51fff7db..39adaec4fa81de8a9fd167b4b7d2a654957716a4 100644 --- a/src/js/economyJS.js +++ b/src/js/economyJS.js @@ -1217,7 +1217,13 @@ window.repX = function(rep, what, who) { //Check if total rep is over cap, and use "overflow" category to expense it down if needed. if (V.rep > 20000) { V.lastWeeksRepExpenses.overflow += (20000 - V.rep); V.rep = 20000; + } + + //Rep should never be lower than 0. Record this rounding purely to keep the books balanced. + else if (V.rep < 0) { + V.lastWeeksRepIncome.overflow += (0 - V.rep); V.rep = 0; } + return rep; };