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.
 
 
 
 

62 lines
1001 B

  1. "use strict";
  2. const buildings = {
  3. "micro": {
  4. "name": "Micro",
  5. "cost": 1e1,
  6. "prod": 0.1
  7. },
  8. "anthro": {
  9. "name": "Anthro",
  10. "cost": 1e2,
  11. "prod": 2
  12. },
  13. "car": {
  14. "name": "Car",
  15. "cost": 1e3,
  16. "prod": 5
  17. },
  18. "train": {
  19. "name": "Train",
  20. "cost": 1e4,
  21. "prod": 25
  22. },
  23. "house": {
  24. "name": "House",
  25. "cost": 1e5,
  26. "prod": 100
  27. },
  28. "universe": {
  29. "name": "Universe",
  30. "cost": 1e15,
  31. "prod": 1e14
  32. }
  33. }
  34. const upgrade_types = {
  35. "prod-2x": {
  36. "apply": function(productivity) {
  37. return productivity * 2;
  38. },
  39. "desc": function(name) {
  40. return "2x food production from " + name;
  41. }
  42. }
  43. }
  44. const upgrades = {
  45. "micro-prod-1": {
  46. "name": "Bigger Micros",
  47. "desc": "A macro micro? Certainly more filling.",
  48. "effect": {
  49. "type": "prod-2x",
  50. "target": "micro"
  51. }
  52. },
  53. "micro-prod-2": {
  54. "name": "Beefy Micros",
  55. "desc": "25% more protein, 10% fewer carbs.",
  56. "effect": "prod-2x"
  57. }
  58. }