config-dist.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. -- do not change this file directly
  2. -- copy and paste it to
  3. --
  4. -- /config.lua
  5. --
  6. -- in the root folder and then alter it.
  7. -- Local access to wands functions
  8. local vMod = vm_lighting_wand
  9. -- To set a custom recipe change the values below to valid items
  10. --! NOTE it does not care if these are valid or not, it only feeds the values to register_craft()
  11. vMod.set_crafting_items("LIGHT_ITEM", "HANDLE_ITEM")
  12. -- Adding to ignored examples
  13. -- vMod.add_ignored_name("NODENAME")
  14. -- vMod.add_ignored_drawtype("DRAWTYPE")
  15. -- vMod.add_ignored_group("GROUP")
  16. -- vMod.add_ignored_onlighting("NODENAME")
  17. -- Define each level (based on the players currently stored burntime amount)
  18. -- 1 coal = 40 burntime
  19. -- It takes around 5.8k coal (burntime) to reach the last level
  20. -- set the max power to 600k burntime
  21. vMod.set_max_power(600000)
  22. --*Level ID: 1
  23. -- 0 -> 9000 = 9000 / 30 = 300 coal to level up
  24. -- coal burntime is worth 30
  25. vMod.add_level(
  26. "Apprentice", -- Name
  27. {
  28. amount_start = 0, -- power amount needed to reach level (will rise max_power to value*1.25)
  29. cost_per_use = 14, -- raw cost per use - (4 torches from one coal 40/4 = 10)
  30. cost_per_node = 1.5, -- cost per node travelled
  31. removal_reduction = 1.25, -- reduction cost to remove (division)
  32. max_range = 7, -- max range
  33. fuel_efficiency = 0.75 -- (item_burntime * fuel_efficiency) (1 coal = 30 @ 0.75)
  34. }
  35. )
  36. --*Level ID: 2
  37. -- 9000 -> 26000 = 17000 / 34 = 500 coal (800 total)
  38. -- coal burntime is worth 34
  39. vMod.add_level(
  40. "Warming up",
  41. {
  42. amount_start = 9000,
  43. cost_per_use = 12,
  44. cost_per_node = 1.4,
  45. removal_reduction = 1.5,
  46. max_range = 14,
  47. fuel_efficiency = 0.85
  48. }
  49. )
  50. --*Level ID: 3
  51. -- 26000 -> 48500 = 22500 / 36 = 625 coal (1425 total)
  52. -- coal is worth 36
  53. vMod.add_level(
  54. "On Fire",
  55. {
  56. amount_start = 26000,
  57. cost_per_use = 10,
  58. cost_per_node = 1.2,
  59. removal_reduction = 2,
  60. max_range = 30,
  61. fuel_efficiency = 0.9
  62. }
  63. )
  64. --*Level ID: 4
  65. -- 48500 -> 79500 = 31000 / 40 = 775 coal (2200 total)
  66. -- coal is worth 40
  67. vMod.add_level(
  68. "Pyro Apprentice",
  69. {
  70. amount_start = 48500,
  71. cost_per_use = 9,
  72. cost_per_node = 1,
  73. removal_reduction = 2.5,
  74. max_range = 45,
  75. fuel_efficiency = 1
  76. }
  77. )
  78. --*Level ID: 5
  79. -- 79500 -> 151500 = 72000 / 60 = 1200 coal (3400 total)
  80. -- coal is worth 60
  81. vMod.add_level(
  82. "Pryo Master",
  83. {
  84. amount_start = 79500,
  85. cost_per_use = 8,
  86. cost_per_node = 0.75,
  87. removal_reduction = 3,
  88. max_range = 70,
  89. fuel_efficiency = 1.5
  90. }
  91. )
  92. --*Level ID: 6
  93. -- 151500 -> 343500 = 192000 / 80 = 2400 coal (5800 total)
  94. -- coal is worth 80
  95. vMod.add_level(
  96. "Sun Master",
  97. {
  98. amount_start = 151500,
  99. cost_per_use = 6,
  100. cost_per_node = 0.5,
  101. removal_reduction = 4,
  102. max_range = 100,
  103. fuel_efficiency = 2
  104. }
  105. )
  106. --*Level ID: 7
  107. -- 343500 -> 600000 = 256,500 / 240 = 2,565 coal (8365 to max)
  108. -- Super OP BROKEN mode
  109. -- coal is worth 320
  110. vMod.add_level(
  111. "Sun Slinger",
  112. {
  113. amount_start = 343500,
  114. cost_per_use = 4,
  115. cost_per_node = 0.25,
  116. removal_reduction = 5,
  117. max_range = 150,
  118. fuel_efficiency = 2.5
  119. }
  120. )
  121. --[[
  122. Example of an 8th level
  123. -- up the max power to 1 million (default is 600k)
  124. vMod.set_max_power(1000000)
  125. vMod.add_level(
  126. "My Level Name",
  127. {
  128. amount_start = 600000, -- the old max level
  129. cost_per_use = 1,
  130. cost_per_node = 0.1,
  131. removal_reduction = 10,
  132. max_range = 250,
  133. fuel_efficiency = 10
  134. }
  135. )
  136. ]]