Add Technology:addEffect
This commit is contained in:
parent
b9b7b515cc
commit
22c5f9ddc7
3 changed files with 31 additions and 20 deletions
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.4
|
||||
Date: 13.02.2025
|
||||
Changes:
|
||||
- Add Technology:addEffect
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.3
|
||||
Date: 02.02.2025
|
||||
Changes:
|
||||
|
|
|
@ -140,6 +140,12 @@ function Technology:addRecipe(recipeName)
|
|||
table.insert(self.prototype.effects, { type = "unlock-recipe", recipe = recipeName })
|
||||
end
|
||||
|
||||
--- Adds an effect to the technology
|
||||
--- @param effect table The effect to add
|
||||
function Technology:addEffect(effect)
|
||||
table.insert(self.prototype.effects, effect)
|
||||
end
|
||||
|
||||
--- Removes a recipe unlock from the technology
|
||||
--- @param recipeName string The name of the recipe to remove
|
||||
function Technology:removeRecipe(recipeName)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cf-lib",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"title": "cackling fiends library",
|
||||
"description": "Because I'd like to have my own library :-)",
|
||||
"author": "cackling fiend",
|
||||
|
|
Loading…
Add table
Reference in a new issue