Add Technology:setIngredients
This commit is contained in:
parent
620c9f48cf
commit
c36fd418ab
1 changed files with 9 additions and 0 deletions
|
@ -140,6 +140,15 @@ function Technology:removeIngredient(ingredientName)
|
|||
return self
|
||||
end
|
||||
|
||||
--- Sets the ingredients for the technology
|
||||
--- @param ingredientNames table The names of the ingredients
|
||||
function Technology:setIngredients(ingredients)
|
||||
self.prototype.unit = self.prototype.unit or {}
|
||||
self.prototype.unit.ingredients = {}
|
||||
self:addIngredients(ingredients)
|
||||
return self
|
||||
end
|
||||
|
||||
--- Adds a recipe unlock to the technology
|
||||
--- @param recipeName string The name of the recipe to unlock
|
||||
function Technology:addRecipe(recipeName)
|
||||
|
|
Loading…
Add table
Reference in a new issue