From 9e5c23ce339fb6723f9c0bfe3ef21b9dd78f9190 Mon Sep 17 00:00:00 2001 From: kookroach <62265045+kookroach@users.noreply.github.com> Date: Sun, 4 Apr 2021 00:06:16 +0200 Subject: [PATCH] Test new Finance --- ReallifeGamemode.Server/Finance/Economy.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Finance/Economy.cs b/ReallifeGamemode.Server/Finance/Economy.cs index 6cb10cb9..e57261b6 100644 --- a/ReallifeGamemode.Server/Finance/Economy.cs +++ b/ReallifeGamemode.Server/Finance/Economy.cs @@ -25,7 +25,7 @@ namespace ReallifeGamemode.Server.Finance public static (int, float, float) GetEconomyClass(Player client, int wage) { int bankAccount = client.GetUser().BankAccount.Balance; - float financialHelp = -(float)Math.Pow(1.0005, -bankAccount) * -1000; + float financialHelp = -(float)Math.Pow(1.0005, -(bankAccount + client.GetUser().Handmoney)) * -1000; float financialInterest = 1 - (float)Math.Pow(1.00006, -wage) * 1; if (financialInterest >= 0.7) financialInterest = 0.7f; @@ -77,7 +77,7 @@ namespace ReallifeGamemode.Server.Finance int vehicleTaxation = GetVehicleTaxation(client); int rentalFees = GetRentalFees(client); - int healthInsurance = (int)(user.BankAccount.Balance * 0.001); + int healthInsurance = (int)((bankAccount + user.Handmoney)* 0.001); if (healthInsurance < 0) { healthInsurance = 0;