Fix Medic 8

This commit is contained in:
VegaZ
2021-04-04 16:58:38 +02:00
parent 3180cdeb94
commit 866b9f9761
2 changed files with 2 additions and 2 deletions

View File

@@ -527,7 +527,7 @@ export default function factionInteraction(globalData: IGlobalData) {
if (timeLeft != null) { if (timeLeft != null) {
if (deadRespawned == false) { if (deadRespawned == false) {
//timeLeft = Math.round(Math.abs(Math.floor(currentDate.getTime() / 1000) - activeTask.TimeLeft - 60)); //timeLeft = Math.round(Math.abs(Math.floor(currentDate.getTime() / 1000) - activeTask.TimeLeft - 60));
if (timeLeft < 60) mp.events.call("cutMedicEarnings"); if (timeLeft < 120) mp.events.call("cutMedicEarnings");
} else { } else {
//timeLeft = Math.round(Math.abs(Math.floor(currentDate.getTime() / 1000) - activeTask.TimeLeft - 120)); //timeLeft = Math.round(Math.abs(Math.floor(currentDate.getTime() / 1000) - activeTask.TimeLeft - 120));
if (timeLeft < 1) mp.events.call("destroyMedicTaskCheckpoint"); if (timeLeft < 1) mp.events.call("destroyMedicTaskCheckpoint");

View File

@@ -24,7 +24,7 @@ namespace ReallifeGamemode.Server.Factions.Medic
public static List<MedicTask> FireTasks = new List<MedicTask>(); public static List<MedicTask> FireTasks = new List<MedicTask>();
public static int ReviveIncome = 100; public static int ReviveIncome = 100;
public static int dutyMedics = 0; public static int dutyMedics = 0;
public static int reviveTaskTime = 120; public static int reviveTaskTime = 240;
public static void AddTaskToList(MedicTask task) public static void AddTaskToList(MedicTask task)
{ {