This commit is contained in:
2018-11-24 16:14:21 +01:00
parent 6f9e7de603
commit 7e9c564822
4 changed files with 42 additions and 30 deletions

36
dist/autoloader.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Sat Nov 24 2018 16:09:52 GMT+0100 (CET)*/
/*Generated on:Sat Nov 24 2018 16:14:20 GMT+0100 (CET)*/
var AutomaticDispose_Branch = "master";
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
var da_lss_adis_time = new Date().getTime();
@@ -6349,12 +6349,15 @@ ADisDB.on("ready", () => {
// - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
function ADis_CollectRescueSprechwuensche() {
ADisDB.ADisSprechwunsch.where({
done: 'false'
}).each((myWunsch) => {
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
return ADis_RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
}
new Promise(async function (resolve, reject) {
await ADisDB.ADisSprechwunsch.where({
done: 'false'
}).each((myWunsch) => {
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
return ADis_RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
}
})
return resolve();
}).then(() => {
$("#building_list").find(".building_list_vehicle_element").each(function () {
var VehicleStatus = $(this).find(".building_list_fms").text();
@@ -6425,14 +6428,17 @@ ADisDB.on("ready", () => {
// - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
function ADis_CollectPoliceSprechwuensche() {
ADisDB.ADisSprechwunschPolice.where({
done: 'false'
}).each((myWunsch) => {
console.log('ADis_CollectPoliceSprechwuensche: remove');
if (!$("#mission_" + myWunsch.missionID).text().match(/Gefangene sollen abtransportiert werden/g)) {
$("#mission_" + myWunsch.missionID).remove();
return ADis_RemovePoliceSprechwunschFromQueue(myWunsch.missionID);
}
new Promise(async function (resolve, reject) {
await ADisDB.ADisSprechwunschPolice.where({
done: 'false'
}).each((myWunsch) => {
console.log('ADis_CollectPoliceSprechwuensche: remove');
if (!$("#mission_" + myWunsch.missionID).text().match(/Gefangene sollen abtransportiert werden/g)) {
$("#mission_" + myWunsch.missionID).remove();
return ADis_RemovePoliceSprechwunschFromQueue(myWunsch.missionID);
}
})
return resolve();
}).then(() => {
console.log('ADis_CollectPoliceSprechwuensche: add');
var MOIODOS = $('div#mission_list div.missionSideBarEntry:visible');

2
dist/standalone.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Sat Nov 24 2018 16:09:52 GMT+0100 (CET)*/
/*Generated on:Sat Nov 24 2018 16:14:20 GMT+0100 (CET)*/
function includesString(string1, string2) {
return string1.toLowerCase().includes(string2.toLowerCase());
}