From 4217d321e5fd4820b671d40cec41eb09cbf1dabd Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 4 Jan 2022 15:13:00 -0600 Subject: [PATCH] Add tax & wealth info to /help --- scripts/server/help.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/server/help.js b/scripts/server/help.js index 80d72a8d..999d3ba3 100644 --- a/scripts/server/help.js +++ b/scripts/server/help.js @@ -147,6 +147,14 @@ function helpCommand(command, params, client) { showRadioHelpMessage(client); break; + case "economy": + case "wealth": + case "tax": + case "taxes": + case "payday": + showWealthAndTaxHelpMessage(client); + break; + default: showMainHelpMessage(client); break; @@ -177,6 +185,7 @@ function helpCommand(command, params, client) { // == Badge ==================================== // == Accents ================================== // == Player Info ============================== +// == Wealth and Tax =========================== // =========================================================================== @@ -336,6 +345,16 @@ function showRadioHelpMessage(client) { // =========================================================================== +function showWealthAndTaxHelpMessage(client) { + messagePlayerInfo(client, `{clanOrange}== {jobYellow}Wealth and Tax {clanOrange}===========================`); + messagePlayerNormal(client, `{clanOrange}• {MAINCOLOUR}Your taxes on payday are calculated by your wealth.`); + messagePlayerNormal(client, `{clanOrange}• {MAINCOLOUR}Your wealth is a total sum based on how many vehicles, houses, and businesses you have.`); + messagePlayerNormal(client, `{clanOrange}• {MAINCOLOUR}Each vehicle is {ALTCOLOUR}${getGlobalConfig().economy.upKeepCosts.upKeepPerVehicle}, {MAINCOLOUR}each house is {ALTCOLOUR}${getGlobalConfig().economy.upKeepCosts.upKeepPerHouse}, {MAINCOLOUR}and each business is {ALTCOLOUR}${getGlobalConfig().economy.upKeepCosts.upKeepPerBusiness}`); + messagePlayerNormal(client, `{clanOrange}• {MAINCOLOUR}Your current wealth is $${wealth} ({ALTCOLOUR}$${getGlobalConfig().economy.upKeepCosts.upKeepPerVehicle*vehicles.length} {MAINCOLOUR}from ${vehicles.length} vehicles, {ALTCOLOUR}$${getGlobalConfig().economy.upKeepCosts.upKeepPerBusiness*businesses.length} {MAINCOLOUR}from ${businesses.length} businesses, and {ALTCOLOUR}$${getGlobalConfig().economy.upKeepCosts.upKeepPerHouse*houses.length} {MAINCOLOUR}from ${houses.length} houses)`) +} + +// =========================================================================== + function showCommandHelpMessage(client, commandName) { if(!commandName) { messagePlayerSyntax(client, `${getCommandSyntaxText("help")}command `);