From b6885fd8846a375ac51e1edc0b8e3fbc9fa0b92d Mon Sep 17 00:00:00 2001 From: kookroach Date: Sun, 11 Apr 2021 01:36:39 +0200 Subject: [PATCH] fix bus and pilot --- ReallifeGamemode.Server/Job/BusDriverJob.cs | 1 + ReallifeGamemode.Server/Job/JobBase.cs | 1 + ReallifeGamemode.Server/Job/PilotJob.cs | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Job/BusDriverJob.cs b/ReallifeGamemode.Server/Job/BusDriverJob.cs index 93571fcc..d741cd3f 100644 --- a/ReallifeGamemode.Server/Job/BusDriverJob.cs +++ b/ReallifeGamemode.Server/Job/BusDriverJob.cs @@ -449,6 +449,7 @@ namespace ReallifeGamemode.Server.Job else if (type == PROFESSIONAL) playerRoutePair3.Remove(player.Name); + playerRouteCurrent.Remove(player.Name); BusDriverJob job = JobManager.GetJob(); StartBusRoute(player, type); }, delayTime: 10000); diff --git a/ReallifeGamemode.Server/Job/JobBase.cs b/ReallifeGamemode.Server/Job/JobBase.cs index 541e6c19..e7355489 100644 --- a/ReallifeGamemode.Server/Job/JobBase.cs +++ b/ReallifeGamemode.Server/Job/JobBase.cs @@ -23,6 +23,7 @@ namespace ReallifeGamemode.Server.Job private static readonly List jobPlayer = new List(); public static Dictionary playerVehiclePair = new Dictionary(); + public static List public abstract int Id { get; } diff --git a/ReallifeGamemode.Server/Job/PilotJob.cs b/ReallifeGamemode.Server/Job/PilotJob.cs index d6046546..47f6ebfe 100644 --- a/ReallifeGamemode.Server/Job/PilotJob.cs +++ b/ReallifeGamemode.Server/Job/PilotJob.cs @@ -24,8 +24,8 @@ namespace ReallifeGamemode.Server.Job public const string INTERMEDIATE = "Fortgeschrittener"; public const string PROFESSIONAL = "Profi"; - public const int WAGE_BEGINNER = 350; - public const int WAGE_INTERMEDIATE = 500; + public const int WAGE_BEGINNER = 300; + public const int WAGE_INTERMEDIATE = 750; public const uint VEHICLE_BEGINNER = (uint)VehicleHash.Cuban800; public const uint VEHICLE_INTERMEDIATE = (uint)VehicleHash.Velum2; @@ -275,6 +275,8 @@ namespace ReallifeGamemode.Server.Job return; } + playerRouteCurrent.Remove(player.Name); + StartPilotRoute(player, skill); }