From b211918122143c811460fb0827bc68aed656bc1c Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 22 May 2022 23:35:34 -0500 Subject: [PATCH] Round income tax to nearest dollar --- scripts/server/economy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/server/economy.js b/scripts/server/economy.js index 5531cf2d..e42479cb 100644 --- a/scripts/server/economy.js +++ b/scripts/server/economy.js @@ -41,7 +41,7 @@ function playerPayDay(client) { grossIncome = grossIncome*2; } - let incomeTaxAmount = calculateIncomeTax(wealth); + let incomeTaxAmount = Math.round(calculateIncomeTax(wealth)); let netIncome = grossIncome-incomeTaxAmount;