cookie clicker but bigger
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

199 lines
3.9 KiB

  1. "use strict";
  2. const resourceTypes = {
  3. "food": {
  4. name: "Food"
  5. }
  6. }
  7. const buildings = {
  8. "micro": {
  9. "name": "Micro",
  10. "plural": "Micros",
  11. "desc": "A tasty, squirmy treat.",
  12. "cost": 1e1,
  13. "prod": 1e-1/1
  14. },
  15. "anthro": {
  16. "name": "Anthro",
  17. "plural": "Anthros",
  18. "desc": "Something more substantial to sate your hunger.",
  19. "cost": 1e2,
  20. "prod": 1e0/1.1
  21. },
  22. "car": {
  23. "name": "Car",
  24. "plural": "Cars",
  25. "desc": "Crunchy shell, tasty center.",
  26. "cost": 1e3,
  27. "prod": 1e1/1.2
  28. },
  29. "bus": {
  30. "name": "Bus",
  31. "plural": "Buses",
  32. "desc": "Probably the worst place to be when a macro is aroud.",
  33. "cost": 1e4,
  34. "prod": 1e2/1.3
  35. },
  36. "house": {
  37. "name": "House",
  38. "plural": "Houses",
  39. "desc": "Home sweet home - but it doesn't taste sweet?",
  40. "cost": 1e5,
  41. "prod": 1e3/1.4
  42. },
  43. "apartment": {
  44. "name": "Apartment",
  45. "plural": "Apartments",
  46. "desc": "More snacks, less packaging.",
  47. "cost": 1e6,
  48. "prod": 1e4/1.5
  49. },
  50. "block": {
  51. "name": "Block",
  52. "plural": "Blocks",
  53. "desc": "A whole pile of buildings.",
  54. "cost": 1e7,
  55. "prod": 1e5/1.6
  56. },
  57. "town": {
  58. "name": "Town",
  59. "plural": "Towns",
  60. "desc": "'Tourist trap' has never been this literal.",
  61. "cost": 1e8,
  62. "prod": 1e6/1.7
  63. },
  64. "city": {
  65. "name": "City",
  66. "plural": "Cities",
  67. "desc": "Please no sitty on our city.",
  68. "cost": 1e9,
  69. "prod": 1e7/1.8
  70. },
  71. "metro": {
  72. "name": "Metropolis",
  73. "plural": "Metropolises",
  74. "desc": "A big ol' city. Tasty, too.",
  75. "cost": 1e10,
  76. "prod": 1e8/1.9
  77. },
  78. "county": {
  79. "name": "County",
  80. "plural": "Counties",
  81. "desc": "Why salt the land when you can slurp it?",
  82. "cost": 1e11,
  83. "prod": 1e9/2
  84. },
  85. "state": {
  86. "name": "State",
  87. "plural": "States",
  88. "desc": "The United States is made up of...43 states - no, 42...",
  89. "cost": 1e12,
  90. "prod": 1e10/2.1
  91. },
  92. "country": {
  93. "name": "Country",
  94. "plural": "Countries",
  95. "desc": "One nation, under paw.",
  96. "cost": 1e13,
  97. "prod": 1e11/2.2
  98. },
  99. "continent": {
  100. "name": "Continent",
  101. "plural": "Continents",
  102. "desc": "Earth-shattering appetite!",
  103. "cost": 1e14,
  104. "prod": 1e12/2.3
  105. },
  106. "planet": {
  107. "name": "Planet",
  108. "plural": "Planets",
  109. "desc": "Earth appetite!",
  110. "cost": 1e15,
  111. "prod": 1e13/2.4
  112. }
  113. }
  114. const upgrade_types = {
  115. "prod-2x": {
  116. "apply": function(productivity) {
  117. return productivity * 2;
  118. },
  119. "desc": function(name) {
  120. return "2x food production from " + name;
  121. }
  122. }
  123. }
  124. const upgrades = {
  125. "micro-prod-1": {
  126. "name": "Bigger Micros",
  127. "desc": "A macro micro? Certainly more filling.",
  128. "cost": {
  129. "food": buildings.micro.cost * 5
  130. },
  131. "effect": {
  132. "type": "prod-2x",
  133. "target": "micro"
  134. },
  135. "prereqs": {
  136. "buildings": {
  137. "micro": 1
  138. }
  139. }
  140. },
  141. "micro-prod-2": {
  142. "name": "Beefy Micros",
  143. "desc": "25% more protein, 10% fewer carbs.",
  144. "cost": {
  145. "food": buildings.micro.cost * 50
  146. },
  147. "effect": {
  148. "type": "prod-2x",
  149. "target": "micro"
  150. },
  151. "prereqs": {
  152. "buildings": {
  153. "micro": 10
  154. },
  155. "upgrades": [
  156. "micro-prod-1"
  157. ]
  158. }
  159. },
  160. "anthro-prod-1": {
  161. "name": "Willing Prey",
  162. "desc": "Why bother chasing it down?",
  163. "cost": {
  164. "food": buildings.anthro.cost * 5
  165. },
  166. "effect": {
  167. "type": "prod-2x",
  168. "target": "anthro"
  169. },
  170. "prereqs": {
  171. "buildings": {
  172. "anthro": 1
  173. }
  174. }
  175. },
  176. "anthro-prod-2": {
  177. "name": "Mesmerized Prey",
  178. "desc": "Why bother walking over to it?",
  179. "cost": {
  180. "food": buildings.anthro.cost * 50
  181. },
  182. "effect": {
  183. "type": "prod-2x",
  184. "target": "anthro"
  185. },
  186. "prereqs": {
  187. "buildings": {
  188. "anthro": 10
  189. },
  190. "upgrades": [
  191. "anthro-prod-1"
  192. ]
  193. }
  194. }
  195. }