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.
 
 
 
 

54 lines
878 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. }
  29. const upgrade_descs = {
  30. "prod-2x": {
  31. "apply": function(productivity) {
  32. return productivity * 2;
  33. },
  34. "desc": function(name) {
  35. return "2x food production from " + name;
  36. }
  37. }
  38. }
  39. const upgrade_info = {
  40. "micro-prod-1": {
  41. "name": "Bigger Micros",
  42. "desc": "A macro micro? Certainly more filling.",
  43. "effect": "prod-2x"
  44. },
  45. "micro-prod-2": {
  46. "name": "Beefy Micros",
  47. "desc": "25% more protein, 10% fewer carbs.",
  48. "effect": "prod-2x"
  49. }
  50. }