Advertisement
Guest User

expensive.diff

a guest
Dec 29th, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. --- data-final-fixes.lua 2021-12-11 19:28:40.000000000 -0600
  2. +++ data-final-fixes.lua-fixed 2021-12-29 20:38:32.902433116 -0600
  3. @@ -77,16 +77,18 @@
  4. if expensive then
  5. new_recipe.normal.ingredients[1] = { ore_name.."-enriched", ore_qty }
  6. new_recipe.expensive.ingredients[1] = { ore_name.."-enriched", ore_qty }
  7. + new_recipe.normal.enabled = true -- TODO: add it to the appropriate tech
  8. + new_recipe.expensive.enabled = true -- TODO: add it to the appropriate tech
  9. else
  10. new_recipe.ingredients[1] = { ore_name.."-enriched", ore_qty }
  11. + new_recipe.enabled = true -- TODO: add it to the appropriate tech
  12. end
  13. new_recipe.name = ore_name.."-enriched-smelting"
  14. - new_recipe.enabled = true -- TODO: add it to the appropriate tech
  15. new_recipe.subgroup = "hexi-ore-recipes-0"
  16. new_recipe.order = "z"
  17. new_recipe.allow_decomposition = false
  18.  
  19. - base_energy = recipe.energy_required or 0.5
  20. + base_energy = recipe.energy_required or recipe.normal.energy_required or .5
  21.  
  22. if expensive then
  23. data:extend({
  24. @@ -95,17 +97,20 @@
  25. type = "recipe",
  26. name = ore_name.."-enrichment-1",
  27. category = "hexi-enrichment",
  28. - enabled = true,
  29. - energy_required = base_energy * tier_ratios.t1.enrich.time,
  30. normal = {
  31. + enabled = true,
  32. + energy_required = base_energy * tier_ratios.t1.enrich.time,
  33. ingredients = {{ore_name, tier_ratios.t1.enrich.input}},
  34. - result = ore_name.."-enriched"
  35. + result = ore_name.."-enriched",
  36. + result_count = tier_ratios.t1.enrich.output
  37. },
  38. expensive = {
  39. + enabled = true,
  40. + energy_required = base_energy * tier_ratios.t1.enrich.time,
  41. ingredients = {{expensive[1] or expensive.name, tier_ratios.t1.enrich.input}},
  42. - result = ore_name.."-enriched"
  43. + result = ore_name.."-enriched",
  44. + result_count = tier_ratios.t1.enrich.output
  45. },
  46. - result_count = tier_ratios.t1.enrich.output,
  47. main_product = "",
  48. icons = {
  49. {
  50. @@ -124,17 +129,20 @@
  51. type = "recipe",
  52. name = ore_name.."-crushing",
  53. category = "hexi-crushing",
  54. - enabled = true,
  55. - energy_required = base_energy * tier_ratios.t2.crush.time,
  56. normal = {
  57. + enabled = true,
  58. + energy_required = base_energy * tier_ratios.t2.crush.time,
  59. ingredients = {{ore_name, tier_ratios.t2.crush.input}},
  60. - result = ore_name.."-crushed"
  61. + result = ore_name.."-crushed",
  62. + result_count = tier_ratios.t2.crush.output
  63. },
  64. expensive = {
  65. + enabled = true,
  66. + energy_required = base_energy * tier_ratios.t2.crush.time,
  67. ingredients = {{expensive[1] or expensive.name, tier_ratios.t2.crush.input}},
  68. - result = ore_name.."-crushed"
  69. + result = ore_name.."-crushed",
  70. + result_count = tier_ratios.t2.crush.output
  71. },
  72. - result_count = tier_ratios.t2.crush.output,
  73. main_product = "",
  74. icons = {
  75. {
  76. @@ -568,4 +576,4 @@
  77. end
  78. end
  79. if matched_recipe then hexi_inline_add_recipe(v, matched_recipe) end
  80. -end
  81. \ No newline at end of file
  82. +end
  83.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement