RAGE Multiplayer 1.1.0-DP Update

/freeze was obselete and removed
/unfreeze was obselete and removed
/spectate was obselete and removed
This commit is contained in:
Siga
2020-02-24 21:18:54 +01:00
parent 0d5731fb11
commit edf06f4478
85 changed files with 804 additions and 643 deletions

View File

@@ -22,7 +22,7 @@ namespace ReallifeGamemode.Server.Finance
{
public static Dictionary<int, Paycheck> Paychecks { get; set; } = new Dictionary<int, Paycheck>();
public static (int, float, float) GetEconomyClass(Client client, int wage)
public static (int, float, float) GetEconomyClass(Player client, int wage)
{
int bankAccount = client.GetUser().GetBankAccount().Balance;
float financialHelp = -(float)Math.Pow(1.0005, -bankAccount) * -1000;
@@ -33,7 +33,7 @@ namespace ReallifeGamemode.Server.Finance
return (bankAccount, financialHelp, financialInterest);
}
public static int GetVehicleTaxation(Client client)
public static int GetVehicleTaxation(Player client)
{
int vehicleTaxation = 0;
using (var dbContext = new DatabaseContext())
@@ -141,7 +141,7 @@ namespace ReallifeGamemode.Server.Finance
return vehicleTaxation;
}
public static float GetPropertyTaxation(Client client)
public static float GetPropertyTaxation(Player client)
{
float propertyTaxation = 0;
User user = client.GetUser();
@@ -154,7 +154,7 @@ namespace ReallifeGamemode.Server.Finance
}
public static void SetPaycheck(Client client, int wage)
public static void SetPaycheck(Player client, int wage)
{
(int bankAccount, float financialHelp, float financialInterest) = GetEconomyClass(client, wage);
float propertyTax = GetPropertyTaxation(client);
@@ -169,7 +169,7 @@ namespace ReallifeGamemode.Server.Finance
ReleasePayDay(client, paycheck);
}
private static int GetRentalFees(Client client)
private static int GetRentalFees(Player client)
{
using (var dbContext = new DatabaseContext())
{
@@ -178,7 +178,7 @@ namespace ReallifeGamemode.Server.Finance
}
}
public static void ReleasePayDay(Client client, Paycheck paycheck)
public static void ReleasePayDay(Player client, Paycheck paycheck)
{
using (var dbContext = new DatabaseContext())
{