lsc 3 år sedan
förälder
incheckning
6535231a61
1 ändrade filer med 29 tillägg och 0 borttagningar
  1. 29 0
      src/components/police.vue

+ 29 - 0
src/components/police.vue

@@ -178,6 +178,35 @@ export default {
           var saL2 = aiL - policeL;
           var saP2 = aiT - policeT;
 
+          if (
+            -70 < stL &&
+            stL < -15 &&
+            45 < stP &&
+            stP < 100 &&
+            25 < spL &&
+            spL < 85 &&
+            -95 < spP &&
+            spP < -40 &&
+            -5 <= saL &&
+            saL < 8 &&
+            -5 <= saP &&
+            saP < 8 &&
+            25 < saL2 &&
+            saL2 < 85 &&
+            -95 < saP2 &&
+            saP2 < -40 &&
+            type == 4
+          ) {
+            dv.style.left = nl + "px";
+            dv.style.top = nt + "px";
+
+            dv1.style.left = nl + 42 + "px";
+            dv1.style.top = nt - 73 + "px";
+
+            dv3.style.left = nl - 56 + "px";
+            dv3.style.top = nt + 70 + "px";
+          }
+
           if (25 < saL2 && saL2 < 85 && -95 < saP2 && saP2 < -40 && type == 4) {
             dv3.style.left = nl - 56 + "px";
             dv3.style.top = nt + 70 + "px";