init.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. --LOOT TABLES
  2. local mese_stuff =
  3. {
  4. rolls = 1,
  5. rolls_max = 5,
  6. loots =
  7. {
  8. {
  9. weight = 95,
  10. loot = "mesecons:wire_00000000_off",
  11. repetitions = 5,
  12. repetitions_max = 30,
  13. },
  14. {
  15. weight = 5,
  16. loot = "eg_turing_machines:tape",
  17. repetitions = 1,
  18. },
  19. accumulated_weight = 100,
  20. }
  21. }
  22. local apple_stuff =
  23. {
  24. rolls = 1,
  25. rolls_max = 4,
  26. loots =
  27. {
  28. {
  29. weight = 75,
  30. loot = "eg_apples:pineapple",
  31. repetitions = 1,
  32. },
  33. {
  34. weight = 15,
  35. loot = "eg_apples:spruceapple",
  36. repetitions = 1,
  37. },
  38. {
  39. weight = 7,
  40. loot = "eg_apples:coconutapple",
  41. repetitions = 1,
  42. },
  43. {
  44. weight = 3,
  45. loot = "eg_apples:appleapple",
  46. repetitions = 1,
  47. },
  48. accumulated_weight = 100,
  49. }
  50. }
  51. local junk =
  52. {
  53. rolls = 1,
  54. rolls_max = 5,
  55. loots =
  56. {
  57. {
  58. weight = 1,
  59. loot = "eg_mapgen:stone",
  60. repetitions = 1,
  61. repetitions_max = 5,
  62. },
  63. {
  64. weight = 1,
  65. loot = "eg_mapgen:sand",
  66. repetitions = 1,
  67. repetitions_max = 5,
  68. },
  69. {
  70. weight = 1,
  71. loot = "eg_mapgen:grass",
  72. repetitions = 1,
  73. repetitions_max = 5,
  74. },
  75. {
  76. weight = 1,
  77. loot = "eg_mapgen:dirt",
  78. repetitions = 1,
  79. repetitions_max = 5,
  80. },
  81. {
  82. weight = 1,
  83. loot = "eg_pebbles:pebble",
  84. repetitions = 1,
  85. repetitions_max = 5,
  86. },
  87. accumulated_weight = 5,
  88. }
  89. }
  90. local dungeon =
  91. {
  92. rolls = 3,
  93. rolls_max = 5,
  94. loots =
  95. {
  96. {
  97. weight = 17,
  98. loot = junk,
  99. repetitions = 1,
  100. },
  101. {
  102. weight = 10,
  103. loot = apple_stuff,
  104. repetitions = 1,
  105. repetitions_max = 2,
  106. },
  107. {
  108. weight = 5,
  109. loot = "light:light",
  110. repetitions = 1,
  111. repetitions_max = 5,
  112. },
  113. {
  114. weight = 2,
  115. loot = mese_stuff,
  116. repetitions = 1,
  117. repetitions_max = 3,
  118. },
  119. accumulated_weight = 34,
  120. }
  121. }
  122. --DUNGEONS
  123. eg_storage_barrels.set_dungeon_loot_table(dungeon)