Change Wages on Pilot, Bus and RefuseCollector

This commit is contained in:
2021-04-22 21:13:15 +02:00
parent 9e6df00f24
commit 253d982883
3 changed files with 16 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ namespace ReallifeGamemode.Server.Job
public const int WAGE_BEGINNER = 400;
public const int WAGE_INTERMEDIATE = 600;
public const int WAGE_PROFESSIOAL = 900;
public const int WAGE_PROFESSIOAL = 650;
public const string BEGINNER = "Anfänger";
public const string INTERMEDIATE = "Fortgeschrittener";
@@ -617,11 +617,18 @@ namespace ReallifeGamemode.Server.Job
return;
if (BusDriverJob.playerVehiclePair[player].Model is BusDriverJob.VEHICLE_BEGINNER)
{
payWage(player, BusDriverJob.WAGE_BEGINNER / BusDriverJob.playerRouteCurrent[player.Name].Count);
}
else if (BusDriverJob.playerVehiclePair[player].Model is BusDriverJob.VEHICLE_INTERMEDIATE)
{
payWage(player, BusDriverJob.WAGE_INTERMEDIATE / BusDriverJob.playerRouteCurrent[player.Name].Count);
payWage(player, 0);
}
else if (BusDriverJob.playerVehiclePair[player].Model is BusDriverJob.VEHICLE_PROFESSIONAL)
{
payWage(player, BusDriverJob.WAGE_PROFESSIOAL / BusDriverJob.playerRouteCurrent[player.Name].Count);
}
}
public static void payWage(Player player, int wage)