Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.28 KB | None | 0 0
  1. {
  2. Random roll = new Random((int)Game1.stats.DaysPlayed + (int)Game1.uniqueIDForThisGame / 2);
  3. int JojaFluctuation = roll.Next(1, 101);
  4. int StarDropFluctuation = roll.Next(1, 101);
  5. int SauceFluctuation = roll.Next(1, 101);
  6. int FerngillFluctuation = roll.Next(1, 101);
  7. Monitor.Log($"Joja Roll {JojaFluctuation}", LogLevel.Debug);
  8. Monitor.Log($"Stardrop Roll {StarDropFluctuation}", LogLevel.Debug);
  9. Monitor.Log($"Sauce Roll {SauceFluctuation}", LogLevel.Debug);
  10. Monitor.Log($"Ferngill Roll {FerngillFluctuation}", LogLevel.Debug);
  11. // 1 is critical fail - 15g 100 is critical success +15 50-99 success +2 02-49 fail -2
  12. if (JojaFluctuation == 1)
  13. {
  14. if (JojaPrice > 200)
  15. {
  16. JojaPrice = JojaPrice - 15 + JojaModifier;
  17. Monitor.Log("JojaCorp shares have dropped sharply today!", LogLevel.Debug);
  18. }
  19. }
  20. if (JojaFluctuation >= 2 || JojaFluctuation <= 49)
  21. {
  22. if (JojaPrice > 200)
  23. {
  24. JojaPrice = JojaPrice - 2 + JojaModifier;
  25. Monitor.Log("JojaCorp Shares have dropped today!", LogLevel.Debug);
  26. }
  27. }
  28. if (JojaFluctuation >=50 || JojaFluctuation <= 99)
  29. {
  30. if (JojaPrice < 500)
  31. {
  32. JojaPrice = JojaPrice + 2 + JojaModifier;
  33. Monitor.Log("JojaCorp Shares have increased today!", LogLevel.Debug);
  34. }
  35. }
  36. if (JojaFluctuation >= 100)
  37. {
  38. if (JojaPrice < 500)
  39. {
  40. JojaPrice = JojaPrice + 15 + JojaModifier;
  41. Monitor.Log("JojaCorp shares have sharply increased today!", LogLevel.Debug);
  42. }
  43. }
  44. if (StarDropFluctuation == 1)
  45. {
  46. if (StardropPrice > 50)
  47. {
  48. StardropPrice = StardropPrice - 15;
  49. Monitor.Log("StardropINC shares have dropped sharply today!", LogLevel.Debug);
  50. }
  51. }
  52. if (StarDropFluctuation >= 2 || StarDropFluctuation <= 49)
  53. {
  54. if (StardropPrice > 50)
  55. {
  56. StardropPrice = StardropPrice - 2;
  57. Monitor.Log("StardropINC Shares have dropped today!", LogLevel.Debug);
  58. }
  59. }
  60. if (StarDropFluctuation >= 50 || StarDropFluctuation <= 99)
  61. {
  62. if (StardropPrice < 250)
  63. {
  64. StardropPrice = StardropPrice + 2;
  65. Monitor.Log("StardropINC Shares have increased today!", LogLevel.Debug);
  66. }
  67. }
  68. if (StarDropFluctuation >= 100)
  69. {
  70. if (StardropPrice < 250)
  71. {
  72. StardropPrice = StardropPrice + 15;
  73. Monitor.Log("StardropINC shares have sharply increased today!", LogLevel.Debug);
  74. }
  75. }
  76. if (SauceFluctuation == 1)
  77. {
  78. if (SaucePrice > 25)
  79. {
  80. SaucePrice = SaucePrice - 15;
  81. Monitor.Log("Queen of SauceINC shares have dropped sharply today!", LogLevel.Debug);
  82. }
  83. }
  84. if (SauceFluctuation >= 2 || SauceFluctuation <= 49)
  85. {
  86. if (SaucePrice > 25)
  87. {
  88. SaucePrice = SaucePrice- 2;
  89. Monitor.Log("Queen of SauceINC Shares have dropped today!", LogLevel.Debug);
  90. }
  91. }
  92. if (SauceFluctuation >= 50 || SauceFluctuation <= 99)
  93. {
  94. if (SaucePrice < 800)
  95. {
  96. SaucePrice = SaucePrice + 2;
  97. Monitor.Log("Queen of SauceINC Shares have increased today!", LogLevel.Debug);
  98. }
  99. }
  100. if (SauceFluctuation >= 100)
  101. {
  102. if (SaucePrice < 800)
  103. {
  104. SaucePrice = SaucePrice + 15;
  105. Monitor.Log("Queen of SauceINC shares have sharply increased today!", LogLevel.Debug);
  106. }
  107. }
  108. if (FerngillFluctuation == 1)
  109. {
  110. if (FerngillPrice > 500)
  111. {
  112. FerngillPrice = FerngillPrice - 15;
  113. Monitor.Log("Bank of Ferngill shares have dropped sharply today!", LogLevel.Debug);
  114. }
  115. }
  116. if (FerngillFluctuation >= 2 || FerngillFluctuation <= 49)
  117. {
  118. if (FerngillPrice > 500)
  119. {
  120. FerngillPrice = FerngillPrice - 2;
  121. Monitor.Log("Bank of Ferngill Shares have dropped today!", LogLevel.Debug);
  122. }
  123. }
  124. if (FerngillFluctuation >= 50 || FerngillFluctuation <= 99)
  125. {
  126. if (SaucePrice < 3000)
  127. {
  128. FerngillPrice = FerngillPrice + 2;
  129. Monitor.Log("Bank of Ferngill Shares have increased today!", LogLevel.Debug);
  130. }
  131. }
  132. if (FerngillFluctuation >= 100)
  133. {
  134. if (FerngillPrice < 3000)
  135. {
  136. FerngillPrice = FerngillPrice + 15;
  137. Monitor.Log("Bank of Ferngill shares have sharply increased today!", LogLevel.Debug);
  138. }
  139. }
  140.  
  141. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement