Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.15 KB | None | 0 0
  1. local base_power = 50
  2. local factor = 1.75
  3.  
  4. data:extend(
  5. {
  6.   {
  7.     type = "item",
  8.     name = "solar-panel-MK1",
  9.     icon = "__replicators__/graphics/icons/solar/solar-panel.png",
  10.     flags = {"goes-to-quickbar"},
  11.     subgroup = "clean-power",
  12.     order = "d[solar-panel]-a[solar-panel]",
  13.     place_result = "solar-panel-MK1",
  14.     stack_size = 50,
  15.  
  16.   },{
  17.     type = "item",
  18.     name = "solar-panel-MK2",
  19.     icon = "__replicators__/graphics/icons/solar/solar-panel-MK2.png",
  20.     flags = {"goes-to-quickbar"},
  21.     subgroup = "clean-power",
  22.     order = "d[solar-panel]-a[solar-panel]",
  23.     place_result = "solar-panel-MK2",
  24.     stack_size = 50
  25.   },
  26.    {
  27.     type = "item",
  28.     name = "solar-panel-MK3",
  29.     icon = "__replicators__/graphics/icons/solar/solar-panel-MK3.png",
  30.     flags = {"goes-to-quickbar"},
  31.     subgroup = "clean-power",
  32.     order = "d[solar-panel]-a[solar-panel]",
  33.     place_result = "solar-panel-MK3",
  34.     stack_size = 50
  35.   },
  36.     {
  37.     type = "item",
  38.     name = "solar-panel-MK4",
  39.     icon = "__replicators__/graphics/icons/solar/solar-panel-MK4.png",
  40.     flags = {"goes-to-quickbar"},
  41.     subgroup = "clean-power",
  42.     order = "d[solar-panel]-a[solar-panel]",
  43.     place_result = "solar-panel-MK4",
  44.     stack_size = 50
  45.   },
  46.     {
  47.     type = "item",
  48.     name = "solar-panel-MK5",
  49.     icon = "__replicators__/graphics/icons/solar/solar-panel-MK5.png",
  50.     flags = {"goes-to-quickbar"},
  51.     subgroup = "clean-power",
  52.     order = "d[solar-panel]-a[solar-panel]",
  53.     place_result = "solar-panel-MK5",
  54.     stack_size = 50
  55.   },
  56. }
  57. )
  58.  
  59. data:extend(
  60. {
  61.   {
  62.     type = "recipe",
  63.     name = "solar-panel-MK1",
  64.   category = "crafting",
  65.     enabled = "false",
  66.   energy_required = 15,
  67.     ingredients =
  68.     {
  69.       {"electronic-circuit", 15},
  70.       {"rare-earth-magnet", 1},
  71.       {"copper-plate", 10},
  72.       {"copper-plate", 25},
  73.     },
  74.     result = "solar-panel-MK1"
  75.   },
  76.   {
  77.     type = "recipe",
  78.     name = "solar-panel-MK2",
  79.   category = "crafting",
  80.     enabled = "false",
  81.   energy_required = 5,
  82.     ingredients =
  83.     {
  84.       {"steel-plate", 5},
  85.       {"electronic-circuit", 10},
  86.       {"solar-panel-MK1", 2},
  87.       {"superconductor", 1},
  88.     },
  89.     result = "solar-panel-MK2"
  90.   },
  91.   {
  92.     type = "recipe",
  93.     name = "solar-panel-MK3",
  94.     category = "crafting",
  95.     enabled = "false",
  96.     energy_required = 5,
  97.     ingredients =
  98.     {
  99.       {"advanced-circuit", 10},
  100.       {"solar-panel-MK2", 2},
  101.       {"superconductor", 5},
  102.     },
  103.     result = "solar-panel-MK3"
  104.   },
  105.    {
  106.     type = "recipe",
  107.     name = "solar-panel-MK4",
  108.   category = "crafting",
  109.     enabled = "false",
  110.   energy_required = 0.5,
  111.     ingredients =
  112.     {
  113.       {"alien-artifact", 1},
  114.       {"processing-unit", 5},
  115.       {"ion-conduit", 1},
  116.       {"solar-panel-MK3", 2},
  117.     },
  118.     result = "solar-panel-MK4"
  119.   },
  120.    {
  121.     type = "recipe",
  122.     name = "solar-panel-MK5",
  123.   category = "crafting",
  124.     enabled = "false",
  125.   energy_required = 0.5,
  126.     ingredients =
  127.     {
  128.       {"alien-artifact", 25},
  129.       {"ion-conduit", 5},
  130.       {"processing-unit", 25},
  131.       {"solar-panel-MK4", 2},
  132.     },
  133.     result = "solar-panel-MK5"
  134.   },
  135.   })
  136.  
  137. data:extend({
  138.    {
  139.     type = "solar-panel",
  140.     name = "solar-panel-MK1",
  141.     fast_replaceable_group = "solar-panel",
  142.     icon = "__replicators__/graphics/icons/solar/solar-panel.png",
  143.     flags = {"placeable-neutral", "player-creation"},
  144.     minable = {hardness = 0.2, mining_time = 0.5, result = "solar-panel-MK1"},
  145.     max_health = 200,
  146.     corpse = "big-remnants",
  147.     collision_box = {{-0.9, -0.9}, {0.9, 0.9}},
  148.     selection_box = {{-1.0, -1.0}, {1.0, 1.0}},
  149.     energy_source =
  150.     {
  151.       type = "electric",
  152.       usage_priority = "primary-output"
  153.     },
  154.     picture =
  155.     {
  156.       filename = "__replicators__/graphics/entity/solar/solar-panel.png",
  157.       priority = "high",
  158.       width = 104,
  159.       height = 96,
  160.       scale= 0.67
  161.     },
  162.     production = base_power * factor^0 ..'kW'
  163.   },
  164.    {
  165.     type = "solar-panel",
  166.     name = "solar-panel-MK2",
  167.     fast_replaceable_group = "solar-panel",
  168.     icon = "__replicators__/graphics/icons/solar/solar-panel-MK2.png",
  169.     flags = {"placeable-neutral", "player-creation"},
  170.     minable = {hardness = 0.2, mining_time = 0.5, result = "solar-panel-MK2"},
  171.     max_health = 200,
  172.     corpse = "big-remnants",
  173.     collision_box = {{-0.9, -0.9}, {0.9, 0.9}},
  174.     selection_box = {{-1.0, -1.0}, {1.0, 1.0}},
  175.     energy_source =
  176.     {
  177.       type = "electric",
  178.       usage_priority = "primary-output"
  179.     },
  180.     picture =
  181.     {
  182.       filename = "__replicators__/graphics/entity/solar/solar-panel-MK2.png",
  183.       priority = "high",
  184.       width = 104,
  185.       height = 96,
  186.       scale= 0.67
  187.     },
  188.     production = base_power * factor^1 ..'kW'
  189.   },
  190.    {
  191.     type = "solar-panel",
  192.     name = "solar-panel-MK3",
  193.     fast_replaceable_group = "solar-panel",
  194.     icon = "__replicators__/graphics/icons/solar/solar-panel-MK3.png",
  195.     flags = {"placeable-neutral", "player-creation"},
  196.     minable = {hardness = 0.2, mining_time = 0.5, result = "solar-panel-MK3"},
  197.     max_health = 300,
  198.     corpse = "big-remnants",
  199.     collision_box = {{-0.9, -0.9}, {0.9, 0.9}},
  200.     selection_box = {{-1.0, -1.0}, {1.0, 1.0}},
  201.     energy_source =
  202.     {
  203.       type = "electric",
  204.       usage_priority = "primary-output"
  205.     },
  206.     picture =
  207.     {
  208.       filename = "__replicators__/graphics/entity/solar/solar-panel-MK3.png",
  209.       priority = "high",
  210.       width = 104,
  211.       height = 96,
  212.       scale= 0.67
  213.     },
  214.     production = base_power * factor^2 ..'kW'
  215.   },
  216.      {
  217.     type = "solar-panel",
  218.     name = "solar-panel-MK4",
  219.     fast_replaceable_group = "solar-panel",
  220.     icon = "__replicators__/graphics/icons/solar/solar-panel-MK4.png",
  221.     flags = {"placeable-neutral", "player-creation"},
  222.     minable = {hardness = 0.2, mining_time = 0.5, result = "solar-panel-MK4"},
  223.     max_health = 400,
  224.     corpse = "big-remnants",
  225.     collision_box = {{-0.9, -0.9}, {0.9, 0.9}},
  226.     selection_box = {{-1.0, -1.0}, {1.0, 1.0}},
  227.     energy_source =
  228.     {
  229.       type = "electric",
  230.       usage_priority = "primary-output"
  231.     },
  232.     picture =
  233.     {
  234.       filename = "__replicators__/graphics/entity/solar/solar-panel-MK4.png",
  235.       priority = "high",
  236.       width = 104,
  237.       height = 96,
  238.       scale= 0.67
  239.     },
  240.     production = base_power * factor^3 ..'kW'
  241.   },
  242.      {
  243.     type = "solar-panel",
  244.     name = "solar-panel-MK5",
  245.     fast_replaceable_group = "solar-panel",
  246.     icon = "__replicators__/graphics/icons/solar/solar-panel-MK5.png",
  247.     flags = {"placeable-neutral", "player-creation"},
  248.     minable = {hardness = 0.2, mining_time = 0.5, result = "solar-panel-MK5"},
  249.     max_health = 500,
  250.     corpse = "big-remnants",
  251.     collision_box = {{-0.9, -0.9}, {0.9, 0.9}},
  252.     selection_box = {{-1.0, -1.0}, {1.0, 1.0}},
  253.     energy_source =
  254.     {
  255.       type = "electric",
  256.       usage_priority = "primary-output"
  257.     },
  258.     picture =
  259.     {
  260.       filename = "__replicators__/graphics/entity/solar/solar-panel-MK5.png",
  261.       priority = "high",
  262.       width = 104,
  263.       height = 96,
  264.       scale= 0.67
  265.     },
  266.     production = base_power * factor^4 ..'kW'
  267.   },
  268. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement