Add tax & wealth info to /help

This commit is contained in:
Vortrex
2022-01-04 15:13:00 -06:00
parent a7f6be0f9d
commit 4217d321e5

View File

@@ -147,6 +147,14 @@ function helpCommand(command, params, client) {
showRadioHelpMessage(client); showRadioHelpMessage(client);
break; break;
case "economy":
case "wealth":
case "tax":
case "taxes":
case "payday":
showWealthAndTaxHelpMessage(client);
break;
default: default:
showMainHelpMessage(client); showMainHelpMessage(client);
break; break;
@@ -177,6 +185,7 @@ function helpCommand(command, params, client) {
// == Badge ==================================== // == Badge ====================================
// == Accents ================================== // == Accents ==================================
// == Player Info ============================== // == 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) { function showCommandHelpMessage(client, commandName) {
if(!commandName) { if(!commandName) {
messagePlayerSyntax(client, `${getCommandSyntaxText("help")}command <command name>`); messagePlayerSyntax(client, `${getCommandSyntaxText("help")}command <command name>`);