Fix Medic 8
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user