Advertisement
Guest User

AsphaltRoads Easy Research

a guest
Sep 17th, 2017
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.56 KB | None | 0 0
  1. -- Used factorissimo2 as example for prototype settings
  2.  
  3. -- settings.lua
  4. data:extend({
  5.     {
  6.         type = "bool-setting",
  7.         name = "AR-use-items-from-bioindustries",
  8.         setting_type = "startup",
  9.         default_value = true,
  10.     },
  11.     {
  12.         type = "bool-setting",
  13.         name = "AR-easy-research",
  14.         setting_type = "startup",
  15.         default_value = false,
  16.     },
  17.     --[[ WIP
  18.     {
  19.         type = "bool-setting",
  20.         name = "AR-merge-transitions-of-asphalt-tiles",
  21.         setting_type = "startup",
  22.         default_value = true,
  23.     }]]
  24. })
  25.  
  26. -- prototypes/technology.lua
  27. local easy_research = settings.startup["AR-easy-research"].value
  28.  
  29. data:extend(
  30. {
  31.     {
  32.         type = "technology",
  33.         name = "Arci-asphalt",
  34.         icon = "__AsphaltRoads__/graphics/technology/tech-asphalt.png",
  35.         icon_size = 128,
  36.         prerequisites = {"concrete"},
  37.         unit =
  38.         {
  39.             count = easy_research and 250 or 300,
  40.             ingredients = easy_research and
  41.             {
  42.                 {"science-pack-1", 1},
  43.                 {"science-pack-2", 1},
  44.                 {"science-pack-3", 1},
  45.             } or {
  46.                 {"science-pack-1", 1},
  47.                 {"science-pack-2", 1},
  48.                 {"science-pack-3", 1},
  49.                 {"production-science-pack", 1}
  50.             },
  51.         time = 45
  52.         },
  53.         effects =
  54.         {
  55.             {
  56.                 type = "unlock-recipe",
  57.                 recipe = "Arci-asphalt"
  58.             }
  59.         },
  60.         order = "c-c-d"
  61.     }
  62. }
  63. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement