Use more util funcs

This commit is contained in:
Vortrex
2021-06-14 20:05:15 -05:00
parent 7b44801a20
commit db762b44fc
32 changed files with 742 additions and 384 deletions

View File

@@ -39,9 +39,9 @@ function playerPayDay(client) {
let netIncome = grossIncome-taxAmount;
messagePlayerAlert(client, "== Payday! =============================");
messagePlayerInfo(client, `Your paycheck: [#AAAAAA]$${grossIncome}`);
messagePlayerInfo(client, `Taxes: [#AAAAAA]$${taxAmount}`);
messagePlayerInfo(client, `You receive: [#AAAAAA]$${netIncome}`);
messagePlayerInfo(client, `Your paycheck: ${getInlineChatColourByName("lightGrey")}$${grossIncome}`);
messagePlayerInfo(client, `Taxes: ${getInlineChatColourByName("lightGrey")}$${taxAmount}`);
messagePlayerInfo(client, `You receive: ${getInlineChatColourByName("lightGrey")}$${netIncome}`);
givePlayerCash(client, netIncome);
}