diff --git a/ReallifeGamemode.Client/Interaction/interactionmenu.ts b/ReallifeGamemode.Client/Interaction/interactionmenu.ts index d3413a94..2f4d749e 100644 --- a/ReallifeGamemode.Client/Interaction/interactionmenu.ts +++ b/ReallifeGamemode.Client/Interaction/interactionmenu.ts @@ -89,6 +89,10 @@ export default function (globalData: IGlobalData) { item.SetRightLabel("~r~- $" + moneyFormat(p.rentalFees)); paycheckMenu.AddItem(item); + item = new UIMenuItem("Krankenkasse"); + item.SetRightLabel("~r~- $" + moneyFormat(p.healthInsurance)); + paycheckMenu.AddItem(item); + item = new UIMenuItem("Einkommensteuer"); item.SetRightLabel((p.financialInterest * 100).toString() + "%"); paycheckMenu.AddItem(item); diff --git a/ReallifeGamemode.Server/Finance/Economy.cs b/ReallifeGamemode.Server/Finance/Economy.cs index d95acda7..78bf8f45 100644 --- a/ReallifeGamemode.Server/Finance/Economy.cs +++ b/ReallifeGamemode.Server/Finance/Economy.cs @@ -77,10 +77,10 @@ namespace ReallifeGamemode.Server.Finance int vehicleTaxation = GetVehicleTaxation(client); int rentalFees = GetRentalFees(client); - int amount = wage - (int)(wage * financialInterest) - vehicleTaxation - (int)propertyTax + (int)financialHelp - rentalFees; - 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); Paychecks[user.Id] = paycheck; ReleasePayDay(client, paycheck);