new mission + feuerwehrleute

This commit is contained in:
2019-02-08 18:08:48 +01:00
parent d3a1f61d38
commit 91615095d8
16 changed files with 1935 additions and 40 deletions

View File

@@ -1882,7 +1882,7 @@ class AutomaticDispose {
if (self.includesString(dangerText, "Wir benötigen noch 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;
}