Fix Need Feuerwehrleute new.

This commit is contained in:
2019-02-05 21:31:12 +01:00
parent 73eabf8dcd
commit d3a1f61d38
5 changed files with 44 additions and 5 deletions

View File

@@ -295,6 +295,8 @@ foreach (glob("*.json") as $filename) {
$mission['id'] = $mission_id;
$mission['type'] = $mission_id;
$mission['name'] = $data['Name'];
$mission['share'] = false;
$fd = fireDepartment($data);
if (array_sum($fd) > 0) {
$mission['fire_department'] = $fd;
@@ -316,6 +318,10 @@ foreach (glob("*.json") as $filename) {
$mission['water_rescue'] = $ws;
}
if (isset($data['Credits im Durchschnitt']) && intval($data['Credits im Durchschnitt']) >= 7000 && $mission['share'] == false) {
$mission['share'] = true;
}
$concat[$mission_id] = $mission;
}