mirror of
https://asciireactor.com/factorio/adamo-chemical.git
synced 2024-11-22 09:45:08 +00:00
Recipes for smelting now force set a main_result for compatibility with SE.
This commit is contained in:
parent
a265349635
commit
12be075733
@ -1,3 +1,11 @@
|
|||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.3.3
|
||||||
|
Date: 2020-11-15
|
||||||
|
|
||||||
|
Recipes:
|
||||||
|
- Smelting recipes will now force-set a main_result value for
|
||||||
|
compatibility with SE.
|
||||||
|
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.3.2
|
Version: 0.3.2
|
||||||
Date: 2020-11-15
|
Date: 2020-11-15
|
||||||
|
@ -239,6 +239,7 @@ local flux_name = "adamo-chemical-calcite"
|
|||||||
local clinker_name = "adamo-chemical-clinker"
|
local clinker_name = "adamo-chemical-clinker"
|
||||||
local fluxxing_category = "adamo-chemical-firing"
|
local fluxxing_category = "adamo-chemical-firing"
|
||||||
local fluxxing_subgroup = fluxxing_category
|
local fluxxing_subgroup = fluxxing_category
|
||||||
|
|
||||||
local calcinate_recipe = function(recipe,mult)
|
local calcinate_recipe = function(recipe,mult)
|
||||||
local recipe = recipe_or_bust(recipe)
|
local recipe = recipe_or_bust(recipe)
|
||||||
if not recipe then return nil end
|
if not recipe then return nil end
|
||||||
@ -247,6 +248,7 @@ local calcinate_recipe = function(recipe,mult)
|
|||||||
local flux_recipe = util.table.deepcopy(recipe)
|
local flux_recipe = util.table.deepcopy(recipe)
|
||||||
flux_recipe.name = flux_recipe.name.."-calcined"
|
flux_recipe.name = flux_recipe.name.."-calcined"
|
||||||
mult_recipe_energy(flux_recipe,time_mult/ore_mult*mult)
|
mult_recipe_energy(flux_recipe,time_mult/ore_mult*mult)
|
||||||
|
set_main_product(flux_recipe,get_main_result(flux_recipe))
|
||||||
mult_in_recipe(flux_recipe,mult)
|
mult_in_recipe(flux_recipe,mult)
|
||||||
flux_recipe.category = fluxxing_category
|
flux_recipe.category = fluxxing_category
|
||||||
flux_recipe.subgroup = fluxxing_subgroup
|
flux_recipe.subgroup = fluxxing_subgroup
|
||||||
|
Loading…
Reference in New Issue
Block a user