This commit is contained in:
2019-04-11 12:20:33 +02:00
parent 014c57c68b
commit 58fbf439c2
3 changed files with 16 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ class AutomaticDisposeFaye {
return
}
myFaye.subscribe('/private-user676600de', function (data) {
eval(self.replaceWithPrefix(data));
@@ -346,7 +346,11 @@ class AutomaticDispose {
self.Check_Call_Police_Active();
} else if (window.location.pathname.indexOf("/missions/") !== -1 && window.name != 'adis-sprechwunsch-police') {
//window.console.log('DEBUG:::: Start Mission')
self.StartMission();
if ($('#missionH1 > a').attr("href").includes("/easteregg")) {
$('#missionH1 > a').click()
} else {
self.StartMission();
}
}
});
@@ -1117,7 +1121,7 @@ class AutomaticDispose {
if (count > 0) {
return Missions.each((MyMission) => {
var MissionElement = $("#mission_" + MyMission.missionID);
if ((MissionElement.length == 0 || MissionElement.text().match(/Gefangene sollen abtransportiert werden/g) || $('#mission_panel_' + MyMission.missionID).hasClass('mission_panel_green') || $('#mission_panel_' + MyMission.missionID).hasClass('mission_panel_yellow')) /*&& MyMission.runner != 'os'*/) {
if ((MissionElement.length == 0 || MissionElement.text().match(/Gefangene sollen abtransportiert werden/g) || $('#mission_panel_' + MyMission.missionID).hasClass('mission_panel_green') || $('#mission_panel_' + MyMission.missionID).hasClass('mission_panel_yellow')) /*&& MyMission.runner != 'os'*/ ) {
// remove
//console.log("Remove :", MyMission)
self.RemoveMissionsFromQueue(MyMission.missionID)