From 89577d27df83114d2dbc0c5c1ab7555d1155a8eb Mon Sep 17 00:00:00 2001 From: kookroach Date: Sat, 10 Apr 2021 23:31:21 +0200 Subject: [PATCH] change FactionMoney from 500 to 300 --- ReallifeGamemode.Server/Finance/Economy.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ReallifeGamemode.Server/Finance/Economy.cs b/ReallifeGamemode.Server/Finance/Economy.cs index 1ff424a2..ac805cd7 100644 --- a/ReallifeGamemode.Server/Finance/Economy.cs +++ b/ReallifeGamemode.Server/Finance/Economy.cs @@ -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;