Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //UNICORN - lit BOB, 3 batteries in 2 holders and an empty port plate - Press the Block 5 times
- if (Bomb.GetBatteryCount() == 3 && Bomb.GetBatteryHolderCount() == 2 && Bomb.GetPortPlates().Any(x => x.Length == 0) && Bomb.IsIndicatorOn(Indicator.BOB))
- {
- Debug.LogFormat("[The Block #{0}] Rule 1 Selected", moduleId);
- Rule = "1";
- correctAnswer = ;
- }
- //If there is a Parallel and a Serial Port present, and Side 4 is Green - Press the first green side in the NET.
- else if (Bomb.GetPortCount(Port.Parallel) > 0 && Bomb.GetPortCount(Port.Serial) > 0 && (cubeFaceColours[3] == FaceColour.Green))
- {
- Debug.LogFormat("[The Block #{0}] Rule 2 Selected", moduleId);
- Rule = "2";
- }
- //If the serial number contains a Vowel, and there is an unlit SIG indicator - Press all sides in reverse numerical order.
- else if (Bomb.GetSerialNumberLetters().Any(x => x == 'A' || x == 'E' || x == 'I' || x == 'O' || x == 'U') && Bomb.IsIndicatorOff(Indicator.SIG))
- {
- Debug.LogFormat("[The Block #{0}] Rule 3 Selected", moduleId);
- Rule = "3";
- }
- //If there are 3+ Batteries, and Side 1 is Red - Press Side 5.
- else if (Bomb.GetBatteryCount() > 2 && (cubeFaceColours[0] == FaceColour.Red))
- {
- Debug.LogFormat("[The Block #{0}] Rule 4 Selected", moduleId);
- Rule = "4";
- }
- //If there are more Blue sides than Red sides - Press Side 2, then Side 4.
- else if (numBlue > numRed)
- {
- Debug.LogFormat("[The Block #{0}] Rule 5 Selected", moduleId);
- Rule = "5";
- }
- //If there are no Yellow sides - press all sides in numerical order
- else if (cubeFaceColours[0] != FaceColour.Yellow && cubeFaceColours[1] != FaceColour.Yellow && cubeFaceColours[2] != FaceColour.Yellow && cubeFaceColours[3] != FaceColour.Yellow && cubeFaceColours[4] != FaceColour.Yellow && cubeFaceColours[5] != FaceColour.Yellow)
- {
- Debug.LogFormat("[The Block #{0}] Rule 6 Selected", moduleId);
- Rule = "6";
- }
- //If Side 2 is Yellow, and Side 3 is Blue - press on the Block.
- else if (cubeFaceColours[1] == FaceColour.Yellow && cubeFaceColours[2] == FaceColour.Blue)
- {
- Debug.LogFormat("[The Block #{0}] Rule 7 Selected", moduleId);
- Rule = "7";
- }
- //If there are no lit indicators, and Side 2 and Side 4 are Blue - Press on the last blue side in the NET.
- else if (cubeFaceColours[1] == FaceColour.Blue && cubeFaceColours[3] == FaceColour.Blue && Bomb.GetOnIndicators().Count() == 0)
- {
- Debug.LogFormat("[The Block #{0}] Rule 8 Selected", moduleId);
- Rule = "8";
- }
- //If there are 2 port plates, and one is empty - Press all even sides, in numerical order
- else if (Bomb.GetPortPlateCount() == 2 && Bomb.GetPortPlates().Any(x => x.Length == 0))
- {
- Debug.LogFormat("[The Block #{0}] Rule 9 Selected", moduleId);
- Rule = "9";
- }
- //If Side 5 is Blue, and Side 1 is Green - Press all odd sides, in reverse numerical order
- else if (cubeFaceColours[4] == FaceColour.Blue && cubeFaceColours[0] == FaceColour.Green)
- {
- Debug.LogFormat("[The Block #{0}] Rule 10 Selected", moduleId);
- Rule = "10";
- }
- //If there are no batteries, and Side 3 is Blue - Press on the first blue side in the NET.
- else if (cubeFaceColours[2] == FaceColour.Blue && Bomb.GetBatteryCount() == 0)
- {
- Debug.LogFormat("[The Block #{0}] Rule 11 Selected", moduleId);
- Rule = "11";
- }
- // If there is at least 1 DVI-D Port, and exactly 1 Battery - Press on the Block
- else if (Bomb.GetPortCount(Port.DVI) > 0 && Bomb.GetBatteryCount() == 1)
- {
- Debug.LogFormat("[The Block #{0}] Rule 12 Selected", moduleId);
- Rule = "12";
- }
- //If there are more Red sides than Blue sides - Press Side 1, then Side 4.
- else if (numRed > numBlue)
- {
- Debug.LogFormat("[The Block #{0}] Rule 13 Selected", moduleId);
- Rule = "13";
- }
- //Otherwise Press Side 4
- else
- {
- Debug.LogFormat("[The Block #{0}] Rule 14 Selected", moduleId);
- Rule = "14";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement