From 371374eeaf9404b4048b53e3c90c618f5244908d Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 13 Dec 2021 20:47:18 -0600 Subject: [PATCH] Fix payday --- scripts/server/economy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/economy.js b/scripts/server/economy.js index bccd9c94..764b3f7c 100644 --- a/scripts/server/economy.js +++ b/scripts/server/economy.js @@ -34,9 +34,9 @@ function playerPayDay(client) { grossIncome = grossIncome + getGlobalConfig().economy.passiveIncomePerPayDay; grossIncome = grossIncome*getGlobalConfig().economy.grossIncomeMultiplier; - incomeTaxAmount = calculateIncomeTax(wealth); + let incomeTaxAmount = calculateIncomeTax(wealth); - let netIncome = grossIncome-taxAmount; + let netIncome = grossIncome-incomeTaxAmount; messagePlayerAlert(client, "== Payday! ============================="); messagePlayerInfo(client, `Paycheck: {ALTCOLOUR}$${grossIncome}`);