Test new Finance
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user