krankenkasse 0 wenn kein geld

This commit is contained in:
hydrant
2020-05-07 19:54:48 +02:00
parent b04ad523f6
commit b7da065240

View File

@@ -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);
}