Advertisement
Guest User

realistic-reactors.lua

a guest
Jul 26th, 2020
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.62 KB | None | 0 0
  1. -- Realistic Reactors data-final-fixes compatability script for Krastorio2
  2.  
  3. if mods["RealisticReactors-utilities"] then
  4.  
  5.     data.raw.recipe["realistic-reactor"].energy_required = 120
  6.     data.raw.recipe["realistic-reactor"].category = "crafting-with-fluid"
  7.     krastorio.recipes.replaceIngredient("realistic-reactor", "concrete", {"concrete", 500})
  8.     krastorio.recipes.replaceIngredient("realistic-reactor", "steel-plate", {"steel-plate", 200})
  9.     krastorio.recipes.replaceIngredient("realistic-reactor", "advanced-circuit", {"advanced-circuit", 200})
  10.     krastorio.recipes.replaceIngredient("realistic-reactor", "copper-plate", {"copper-plate", 200})
  11.     krastorio.recipes.addIngredient("realistic-reactor", {"rare-metals", 200})
  12.     data.raw.recipe["breeder-reactor"].energy_required = 120
  13.     data.raw.recipe["breeder-reactor"].category = "crafting-with-fluid"
  14.     krastorio.recipes.replaceIngredient("breeder-reactor", "concrete", {"concrete", 500})
  15.     krastorio.recipes.replaceIngredient("breeder-reactor", "steel-plate", {"steel-plate", 200})
  16.     krastorio.recipes.replaceIngredient("breeder-reactor", "advanced-circuit", {"advanced-circuit", 200})
  17.     krastorio.recipes.replaceIngredient("breeder-reactor", "copper-plate", {"copper-plate", 200})
  18.     krastorio.recipes.addIngredient("breeder-reactor", {"rare-metals", 200})
  19.     data.raw.recipe["rr-cooling-tower"].energy_required = 30
  20.     data.raw.recipe["rr-cooling-tower"].category = "crafting-with-fluid"
  21.     krastorio.recipes.replaceIngredient("rr-cooling-tower", "steel-plate", {"steel-plate", 50})
  22.     krastorio.recipes.addIngredient("rr-cooling-tower", {"rare-metals", 50})
  23.     data.raw.recipe["reactor-sarcophagus"].energy_required = 240
  24.     data.raw.recipe["reactor-sarcophagus"].category = "crafting-with-fluid"
  25.     krastorio.recipes.replaceIngredient("reactor-sarcophagus", "steel-plate", {"steel-plate", 400})
  26.     krastorio.recipes.replaceIngredient("reactor-sarcophagus", "advanced-circuit", {"advanced-circuit", 50})
  27.     krastorio.recipes.addIngredient("reactor-sarcophagus", {"rare-metals", 200})
  28.  
  29.     krastorio.recipes.removeIngredient("kr-nuclear-locomotive", "electronic-components")
  30.     krastorio.recipes.removeIngredient("kr-nuclear-locomotive", "steel-gear-wheel")
  31.     krastorio.recipes.removeIngredient("kr-nuclear-locomotive", "rare-metals")
  32.     krastorio.recipes.addIngredient("kr-nuclear-locomotive", {"realistic-reactor", 1})
  33.  
  34. end
  35.  
  36. if mods["RealisticReactors-utilities"] then
  37.     local armor = data.raw["armor"]["radsuit"]
  38.     if armor then
  39.         if not armor.resistances then
  40.             armor.resistances = {}
  41.         end
  42.         table.insert(armor.resistances,
  43.         {
  44.             ["type"]     = "radioactive",
  45.             ["decrease"] = 7,
  46.             ["percent"]  = 90
  47.         })
  48.     end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement