payday frakgeld geht brrrrr
This commit is contained in:
@@ -81,9 +81,17 @@ namespace ReallifeGamemode.Server.Finance
|
||||
|
||||
int healthInsurance = (int)(user.BankAccount.Balance * 0.001);
|
||||
|
||||
int amount = wage - (int)(wage * financialInterest) - vehicleTaxation - (int)propertyTax + (int)financialHelp - rentalFees - healthInsurance;
|
||||
|
||||
Paycheck paycheck = new Paycheck(financialHelp, financialInterest, vehicleTaxation, propertyTax, wage, amount, rentalFees, healthInsurance);
|
||||
int? factionMoney = null;
|
||||
|
||||
if (user.Faction != null && user.FactionRank != null)
|
||||
{
|
||||
factionMoney = user.FactionRank.Order * 1000;
|
||||
}
|
||||
|
||||
int amount = wage - (int)(wage * financialInterest) - vehicleTaxation - (int)propertyTax + (int)financialHelp - rentalFees - healthInsurance + (factionMoney ?? 0);
|
||||
|
||||
Paycheck paycheck = new Paycheck(financialHelp, financialInterest, vehicleTaxation, propertyTax, wage, amount, rentalFees, healthInsurance, factionMoney);
|
||||
Paychecks[user.Id] = paycheck;
|
||||
ReleasePayDay(client, paycheck);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user