public void MakingHand() { FastCheck fc = new FastCheck(); int[] classcars = ConditionHandling(); NotePad.DoLog("Собираю " + classcars[0] + "F, " + classcars[1] + "E, " + classcars[2] + "D, " + classcars[3] + "C, " + classcars[4] + "B, " + classcars[5] + "A, " + classcars[6] + "S"); Thread.Sleep(1000); int emptycars; //недобор int conditionAvailableCars; int usedhandslots = 0; if (Condition.ConditionNumber1 != "empty" && Condition.ConditionNumber1 != "обычная х3" && !fc.ConditionActivated()) { if (Condition.ConditionNumber2 == "empty") { Rat.Clk(PointsAndRectangles.commonCondition); } else { Rat.Clk(PointsAndRectangles.commonCondition); Thread.Sleep(1000); Rat.Clk(PointsAndRectangles.cond1); Thread.Sleep(200); Rat.Clk(PointsAndRectangles.cond2); Thread.Sleep(200); Rat.Clk(PointsAndRectangles.commonConditionCross); } } //включить фильтр условия события. Point[] cls = { PointsAndRectangles.f, PointsAndRectangles.e, PointsAndRectangles.d, PointsAndRectangles.c, PointsAndRectangles.b, PointsAndRectangles.a, PointsAndRectangles.s }; for (int i = 6; i > -1; i--) { if (classcars[i] > 0) { Randomizer(); UseFilter(cls[i]); conditionAvailableCars = Condition.AvailableCars(i); if (i == 0)//для серых нет возврата недобора { DragnDpopHand(classcars[i], usedhandslots, conditionAvailableCars); } else { emptycars = 0; emptycars += DragnDpopHand(classcars[i], usedhandslots, conditionAvailableCars); usedhandslots += classcars[i] - emptycars; classcars[i - 1] += emptycars; } } }//механизм расстановки if (VerifyHand()) { int[] carsid = RememberHand(); NotePad.Saves(carsid); } //сохранение руки }