This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattributes.txt
32 lines (28 loc) · 1.68 KB
/
attributes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[recipe-id]{ (Ex: "copper-cable)
name = recipe locale name (Ex: "Copper Cable productivity")
productivity = percetage (Ex: 10 for 10%)
max = integer (Default to nil, use this to limit the maxinum number of research) --not implemented yet
recipe_icon = Boolean (set to true to force using the recipe icon, optional)
fluid = Boolean (set to true to define that the result type are fluids, optional)
icons = {} (use custom icon, see https://lua-api.factorio.com/latest/types/IconData.html for more information)
stages = stages from 1 to 7 (How many steps of research with differenet science pack)
stages_packs = {{{"automation-science-pack", 1}}, {{"automation-science-pack", 1}, {"logistics-science-pack", 1}}} (The list of required Sciece pack for every stage and their count)
stages_levels = {2, 2} (The number of research for level, )
stages_costs = {10, 20} (The tech countfor each stage)
stages_cost_multipliers = {1.5, 2} (The tech cost multiplerfor the levels of the stages)
stages_productivities = {10, 15} (The productivity for every stage, not allowed with the key "productivity" declared )
stages_times = {30, 30} (Time to consume 1 set of science pack for each stage)
}
To add a custom productivity you just need to use CE_Add_Recipe
Example:
data = {
name = "Copper cable productivity",
stages = 6,
stages_packs = Packs,
stages_levels = { 3, 3, 3, 4, 5 },
stages_costs = { 1000, 1000, 1000, 1000, 1000, 1200 },
stages_cost_multipliers = { 1, 1, 1, 1, 1, 1.5 },
stages_productivities = { 10, 10, 10, 10, 10, 10 },
stages_times = { 45, 45, 45, 45, 45, 45 }
}
CE_Add_Recipe(data, name)