fix when mods missing
This commit is contained in:
parent
4a0834f38e
commit
a354411b4b
2 changed files with 14 additions and 7 deletions
|
|
@ -5,6 +5,7 @@ Date: 2022-01-31
|
||||||
- Fix default setting for refractory recipes.
|
- Fix default setting for refractory recipes.
|
||||||
WARNING: If you use these recipes, update your refractory recipes setting before
|
WARNING: If you use these recipes, update your refractory recipes setting before
|
||||||
saving your game.
|
saving your game.
|
||||||
|
- Fix some refractory recipes when used without certain mods
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.0.9
|
Version: 0.0.9
|
||||||
Date: 2022-01-25
|
Date: 2022-01-25
|
||||||
|
|
|
||||||
|
|
@ -93,13 +93,19 @@ function make_recipe(recipe)
|
||||||
r.category = "founding"
|
r.category = "founding"
|
||||||
r.subgroup = data.raw.item[found_result].subgroup
|
r.subgroup = data.raw.item[found_result].subgroup
|
||||||
icons = rusty_icons.of(data.raw.recipe[recipe.name])
|
icons = rusty_icons.of(data.raw.recipe[recipe.name])
|
||||||
table.insert(icons,
|
table.insert(
|
||||||
mods.bzcarbon and
|
icons,
|
||||||
{ icon = "__bzcarbon__/graphics/icons/graphite-2.png",
|
(mods.bzcarbon and
|
||||||
icon_size = 128, scale=0.125, shift={8, -8}}
|
{ icon = "__bzcarbon__/graphics/icons/graphite-2.png",
|
||||||
or
|
icon_size = 128, scale=0.125, shift={8, -8}})
|
||||||
{ icon = "__bzsilicon__/graphics/icons/silica.png",
|
or (mods.bzsilicon and
|
||||||
icon_size = 64, scale=0.25, icon_mipmaps = 3, shift={8, -8}})
|
{ icon = "__bzsilicon__/graphics/icons/silica.png",
|
||||||
|
icon_size = 64, scale=0.25, icon_mipmaps = 3, shift={8, -8}})
|
||||||
|
or (mods.bzzirconium and
|
||||||
|
{ icon = "__bzzirconium__/graphics/icons/zirconia.png",
|
||||||
|
icon_size = 128, scale=0.125, icon_mipmaps = 3, shift={8, -8}})
|
||||||
|
or nil
|
||||||
|
)
|
||||||
r.icons = icons
|
r.icons = icons
|
||||||
locale = rusty_locale.of_recipe(data.raw.recipe[recipe.name])
|
locale = rusty_locale.of_recipe(data.raw.recipe[recipe.name])
|
||||||
r.localised_name = {"recipe-name.with-refractory", locale.name}
|
r.localised_name = {"recipe-name.with-refractory", locale.name}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue