change FactionMoney from 500 to 300

This commit is contained in:
2021-04-10 23:31:21 +02:00
parent d7c71006c3
commit 89577d27df

View File

@@ -66,7 +66,6 @@ namespace ReallifeGamemode.Server.Finance
return propertyTaxation;
}
public static void SetPaycheck(Player client, bool minusJail = true)
{
User user = client.GetUser();
@@ -76,7 +75,7 @@ namespace ReallifeGamemode.Server.Finance
int vehicleTaxation = GetVehicleTaxation(client);
int rentalFees = GetRentalFees(client);
int healthInsurance = (int)((bankAccount + user.Handmoney)* 0.001);
int healthInsurance = (int)((bankAccount + user.Handmoney) * 0.001);
if (healthInsurance < 0)
{
healthInsurance = 0;
@@ -86,7 +85,12 @@ namespace ReallifeGamemode.Server.Finance
if (user.Faction != null && user.FactionRank != null)
{
factionMoney = user.FactionRank.Order * 500;
int factioWage = user.FactionRank.Order * 300;
if (wage > 2500)
factioWage /= 2;
else
factionMoney = factioWage;
}
int otheramount = user.otheramount;
int amount = wage - (int)(wage * financialInterest) - vehicleTaxation - (int)propertyTax + (int)financialHelp - rentalFees - healthInsurance + (factionMoney ?? 0) + otheramount;