Advertisement
Guest User

Untitled

a guest
May 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. //UNICORN - lit BOB, 3 batteries in 2 holders and an empty port plate - Press the Block 5 times
  2. if (Bomb.GetBatteryCount() == 3 && Bomb.GetBatteryHolderCount() == 2 && Bomb.GetPortPlates().Any(x => x.Length == 0) && Bomb.IsIndicatorOn(Indicator.BOB))
  3. {
  4. Debug.LogFormat("[The Block #{0}] Rule 1 Selected", moduleId);
  5. Rule = "1";
  6. correctAnswer = ;
  7. }
  8.  
  9. //If there is a Parallel and a Serial Port present, and Side 4 is Green - Press the first green side in the NET.
  10. else if (Bomb.GetPortCount(Port.Parallel) > 0 && Bomb.GetPortCount(Port.Serial) > 0 && (cubeFaceColours[3] == FaceColour.Green))
  11. {
  12. Debug.LogFormat("[The Block #{0}] Rule 2 Selected", moduleId);
  13. Rule = "2";
  14. }
  15.  
  16. //If the serial number contains a Vowel, and there is an unlit SIG indicator - Press all sides in reverse numerical order.
  17. else if (Bomb.GetSerialNumberLetters().Any(x => x == 'A' || x == 'E' || x == 'I' || x == 'O' || x == 'U') && Bomb.IsIndicatorOff(Indicator.SIG))
  18. {
  19. Debug.LogFormat("[The Block #{0}] Rule 3 Selected", moduleId);
  20. Rule = "3";
  21. }
  22.  
  23. //If there are 3+ Batteries, and Side 1 is Red - Press Side 5.
  24. else if (Bomb.GetBatteryCount() > 2 && (cubeFaceColours[0] == FaceColour.Red))
  25. {
  26. Debug.LogFormat("[The Block #{0}] Rule 4 Selected", moduleId);
  27. Rule = "4";
  28. }
  29.  
  30. //If there are more Blue sides than Red sides - Press Side 2, then Side 4.
  31. else if (numBlue > numRed)
  32. {
  33. Debug.LogFormat("[The Block #{0}] Rule 5 Selected", moduleId);
  34. Rule = "5";
  35. }
  36.  
  37. //If there are no Yellow sides - press all sides in numerical order
  38. 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)
  39. {
  40. Debug.LogFormat("[The Block #{0}] Rule 6 Selected", moduleId);
  41. Rule = "6";
  42. }
  43.  
  44. //If Side 2 is Yellow, and Side 3 is Blue - press on the Block.
  45. else if (cubeFaceColours[1] == FaceColour.Yellow && cubeFaceColours[2] == FaceColour.Blue)
  46. {
  47. Debug.LogFormat("[The Block #{0}] Rule 7 Selected", moduleId);
  48. Rule = "7";
  49. }
  50.  
  51. //If there are no lit indicators, and Side 2 and Side 4 are Blue - Press on the last blue side in the NET.
  52. else if (cubeFaceColours[1] == FaceColour.Blue && cubeFaceColours[3] == FaceColour.Blue && Bomb.GetOnIndicators().Count() == 0)
  53. {
  54. Debug.LogFormat("[The Block #{0}] Rule 8 Selected", moduleId);
  55. Rule = "8";
  56. }
  57.  
  58. //If there are 2 port plates, and one is empty - Press all even sides, in numerical order
  59. else if (Bomb.GetPortPlateCount() == 2 && Bomb.GetPortPlates().Any(x => x.Length == 0))
  60. {
  61. Debug.LogFormat("[The Block #{0}] Rule 9 Selected", moduleId);
  62. Rule = "9";
  63. }
  64.  
  65. //If Side 5 is Blue, and Side 1 is Green - Press all odd sides, in reverse numerical order
  66. else if (cubeFaceColours[4] == FaceColour.Blue && cubeFaceColours[0] == FaceColour.Green)
  67. {
  68. Debug.LogFormat("[The Block #{0}] Rule 10 Selected", moduleId);
  69. Rule = "10";
  70. }
  71.  
  72. //If there are no batteries, and Side 3 is Blue - Press on the first blue side in the NET.
  73. else if (cubeFaceColours[2] == FaceColour.Blue && Bomb.GetBatteryCount() == 0)
  74. {
  75. Debug.LogFormat("[The Block #{0}] Rule 11 Selected", moduleId);
  76. Rule = "11";
  77. }
  78.  
  79. // If there is at least 1 DVI-D Port, and exactly 1 Battery - Press on the Block
  80. else if (Bomb.GetPortCount(Port.DVI) > 0 && Bomb.GetBatteryCount() == 1)
  81. {
  82. Debug.LogFormat("[The Block #{0}] Rule 12 Selected", moduleId);
  83. Rule = "12";
  84. }
  85.  
  86. //If there are more Red sides than Blue sides - Press Side 1, then Side 4.
  87. else if (numRed > numBlue)
  88. {
  89. Debug.LogFormat("[The Block #{0}] Rule 13 Selected", moduleId);
  90. Rule = "13";
  91. }
  92.  
  93. //Otherwise Press Side 4
  94. else
  95. {
  96. Debug.LogFormat("[The Block #{0}] Rule 14 Selected", moduleId);
  97. Rule = "14";
  98. }
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement