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

@@ -1,4 +1,4 @@
/*Generated on:Fri Feb 01 2019 16:06:06 GMT+0100 (CET)*/
/*Generated on:Tue Feb 05 2019 21:31:12 GMT+0100 (CET)*/
/*
* Dexie.js - a minimalistic wrapper for IndexedDB
* ===============================================
@@ -19388,7 +19388,7 @@ class AutomaticDispose {
if (self.includesString(dangerText, "Wir benötigen min.") && self.includesString(dangerText, "Feuerwehrleute.")) {
const weNeed = self._ADisVehiclesNeed["0"];
const regex = /(\d+) Feuerwehrleute/gm;
const newNeed = Math.ceil(Number(parseInt(dangerText.match(regex))) / 6) - weNeed;
const newNeed = Math.ceil(Number(parseInt(dangerText.match(regex))) / 6) + weNeed;
self._ADisVehiclesNeed["0"] = newNeed;
}