Esempio n. 1
0
        private string ModifyRom(int SEED)
        {
            bool[] error           = new bool[5];
            Random random          = new Random(Convert.ToInt32(SEED.ToString()));
            bool   timeDoorProblem = false;

            for (int i = 0; i < _WorldScreenCollections.Length; i++)
            {
                WorldScreenCollection wc = _WorldScreenCollections[i];


                error[i] = wc.Modify(i, random);

                if (wc.timeDoorProblem)
                {
                    timeDoorProblem = true;
                }
            }

            if (timeDoorProblem)
            {
                return("TimeDoor problem");
            }
            else
            {
                if (CheckThatAllRequiredScreenContentsArePresent())
                {
                    return("success");
                }
                else
                {
                    return("***Requred content missing***");
                }
            }
        }