up
This commit is contained in:
parent
d481c3aa11
commit
1e538c0fad
3 changed files with 14 additions and 0 deletions
|
|
@ -27,3 +27,4 @@ Thanks to
|
||||||
- [S3BA](https://github.com/S3BA-pl) (pl)
|
- [S3BA](https://github.com/S3BA-pl) (pl)
|
||||||
- [x2605](https://github.com/x2605) (ko)
|
- [x2605](https://github.com/x2605) (ko)
|
||||||
- [Pergamum663](https://github.com/Pergamum663) (ru)
|
- [Pergamum663](https://github.com/Pergamum663) (ru)
|
||||||
|
- [NathanU](https://github.com/NathanU) (de)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ Version: 0.11.5
|
||||||
Date: 2022-12-24
|
Date: 2022-12-24
|
||||||
Localization:
|
Localization:
|
||||||
- ja locale updates from Sakuro
|
- ja locale updates from Sakuro
|
||||||
|
- de locale updates from NathanU
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.11.4
|
Version: 0.11.4
|
||||||
Date: 2022-08-23
|
Date: 2022-08-23
|
||||||
|
|
|
||||||
|
|
@ -235,6 +235,18 @@ function util.se_matter(params)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Get the normal prototype for a recipe -- either .normal or the recipe itself
|
||||||
|
function util.get_normal(recipe_name)
|
||||||
|
if data.raw.recipe[recipe_name] then
|
||||||
|
recipe = data.raw.recipe[recipe_name]
|
||||||
|
if recipe.normal and recipe.normal.ingredients then
|
||||||
|
return recipe.normal
|
||||||
|
elseif recipe.ingredients then
|
||||||
|
return recipe
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Set/override a technology's prerequisites
|
-- Set/override a technology's prerequisites
|
||||||
function util.set_prerequisite(technology_name, prerequisites)
|
function util.set_prerequisite(technology_name, prerequisites)
|
||||||
local technology = data.raw.technology[technology_name]
|
local technology = data.raw.technology[technology_name]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue