change FactionMoney from 500 to 300
This commit is contained in:
@@ -66,7 +66,6 @@ namespace ReallifeGamemode.Server.Finance
|
|||||||
return propertyTaxation;
|
return propertyTaxation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void SetPaycheck(Player client, bool minusJail = true)
|
public static void SetPaycheck(Player client, bool minusJail = true)
|
||||||
{
|
{
|
||||||
User user = client.GetUser();
|
User user = client.GetUser();
|
||||||
@@ -76,7 +75,7 @@ namespace ReallifeGamemode.Server.Finance
|
|||||||
int vehicleTaxation = GetVehicleTaxation(client);
|
int vehicleTaxation = GetVehicleTaxation(client);
|
||||||
int rentalFees = GetRentalFees(client);
|
int rentalFees = GetRentalFees(client);
|
||||||
|
|
||||||
int healthInsurance = (int)((bankAccount + user.Handmoney)* 0.001);
|
int healthInsurance = (int)((bankAccount + user.Handmoney) * 0.001);
|
||||||
if (healthInsurance < 0)
|
if (healthInsurance < 0)
|
||||||
{
|
{
|
||||||
healthInsurance = 0;
|
healthInsurance = 0;
|
||||||
@@ -86,7 +85,12 @@ namespace ReallifeGamemode.Server.Finance
|
|||||||
|
|
||||||
if (user.Faction != null && user.FactionRank != null)
|
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 otheramount = user.otheramount;
|
||||||
int amount = wage - (int)(wage * financialInterest) - vehicleTaxation - (int)propertyTax + (int)financialHelp - rentalFees - healthInsurance + (factionMoney ?? 0) + otheramount;
|
int amount = wage - (int)(wage * financialInterest) - vehicleTaxation - (int)propertyTax + (int)financialHelp - rentalFees - healthInsurance + (factionMoney ?? 0) + otheramount;
|
||||||
|
|||||||
Reference in New Issue
Block a user