From b7da06524070c45fea07b9bc317b7f3576d8212d Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 7 May 2020 19:54:48 +0200 Subject: [PATCH] krankenkasse 0 wenn kein geld --- ReallifeGamemode.Server/Finance/Economy.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Finance/Economy.cs b/ReallifeGamemode.Server/Finance/Economy.cs index 500f609a..1439b9c7 100644 --- a/ReallifeGamemode.Server/Finance/Economy.cs +++ b/ReallifeGamemode.Server/Finance/Economy.cs @@ -81,6 +81,10 @@ namespace ReallifeGamemode.Server.Finance int rentalFees = GetRentalFees(client); int healthInsurance = (int)(user.BankAccount.Balance * 0.001); + if (healthInsurance < 0) + { + healthInsurance = 0; + } int? factionMoney = null; @@ -170,7 +174,7 @@ namespace ReallifeGamemode.Server.Finance dbContext.SaveChanges(); - if(putInJail != 0 && minusJail) + if (putInJail != 0 && minusJail) { Jail.Check_PutBehindBars(client, false); }