Add job pay
This commit is contained in:
@@ -33,6 +33,11 @@ function playerPayDay(client) {
|
|||||||
// Passive income
|
// Passive income
|
||||||
grossIncome = Math.round(grossIncome + getGlobalConfig().economy.passiveIncomePerPayDay);
|
grossIncome = Math.round(grossIncome + getGlobalConfig().economy.passiveIncomePerPayDay);
|
||||||
|
|
||||||
|
// Job Pay
|
||||||
|
if (getPlayerJob(client) != -1) {
|
||||||
|
grossIncome = Math.round(grossIncome + getJobRankData(getPlayerJob(client), getPlayerJobRank(client)).pay);
|
||||||
|
}
|
||||||
|
|
||||||
// Payday bonus
|
// Payday bonus
|
||||||
grossIncome = Math.round(grossIncome * getGlobalConfig().economy.grossIncomeMultiplier);
|
grossIncome = Math.round(grossIncome * getGlobalConfig().economy.grossIncomeMultiplier);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user